mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 04:31:55 +02:00
Tests: Use named data provider in iso8601_to_datetime()
tests.
Follow-up to [54230], [58164]. See #60705. git-svn-id: https://develop.svn.wordpress.org/trunk@58458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4f175e167e
commit
9f7fcf1263
@ -165,6 +165,7 @@ class Tests_Formatting_Date extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 31809
|
||||
* @ticket 56468
|
||||
*
|
||||
* @dataProvider data_timezone_provider
|
||||
*
|
||||
@ -232,16 +233,15 @@ class Tests_Formatting_Date extends WP_UnitTestCase {
|
||||
*/
|
||||
public function data_timezone_provider() {
|
||||
return array(
|
||||
array(
|
||||
'valid timezone string and GMT offset' => array(
|
||||
'timezone_string' => 'Europe/Helsinki',
|
||||
'gmt_offset' => 3,
|
||||
),
|
||||
array(
|
||||
'empty timezone string, valid GMT offset' => array(
|
||||
'timezone_string' => '',
|
||||
'gmt_offset' => 3,
|
||||
),
|
||||
// @ticket 56468
|
||||
'deprecated timezone string and no GMT offset set' => array(
|
||||
'deprecated timezone string, no GMT offset' => array(
|
||||
'timezone_string' => 'America/Buenos_Aires',
|
||||
'gmt_offset' => 0,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user