function DateTimePlusTest::testCheckArray
Same name and namespace in other branches
- 11.x 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()
- 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, bool $expected) : void {
$method = new \ReflectionMethod(DateTimePlus::class, 'checkArray');
$result = $method->invoke(NULL, $array);
$this->assertSame($expected, $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.