public function DateTimePlusTest::testCheckArray in Drupal 8
Same name and namespace 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()
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));
}