function DateTimePlusTest::testCheckArray
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
- 10 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
- 11.x core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
Tests DateTimePlus::checkArray().
@dataProvider providerTestCheckArray
Parameters
mixed $array: Input argument for DateTimePlus::checkArray().
bool $expected: The expected result of DateTimePlus::checkArray().
File
-
core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php, line 125
Class
- DateTimePlusTest
- @coversDefaultClass \Drupal\Component\Datetime\DateTimePlus @group Datetime
Namespace
Drupal\Tests\Component\DatetimeCode
public function testCheckArray(array $array, $expected) {
$this->assertSame($expected, DateTimePlus::checkArray($array));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.