function DateTimePlusTest::testCheckArray
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
- 9 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
- 8.9.x core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
Tests DateTimePlus::checkArray().
Attributes
#[DataProvider('providerTestCheckArray')]
Parameters
array $array: Input argument for DateTimePlus::checkArray().
bool $expected: The expected result of DateTimePlus::checkArray().
File
-
core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php, line 124
Class
Namespace
Drupal\Tests\Component\DatetimeCode
public function testCheckArray(array $array, $expected) : void {
$this->assertSame($expected, DateTimePlus::checkArray($array));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.