You are here

public function DateTimePlusTest::testCheckArray in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()
  2. 9 core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php \Drupal\Tests\Component\Datetime\DateTimePlusTest::testCheckArray()

Tests DateTimePlus::checkArray().

@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 125

Class

DateTimePlusTest
@coversDefaultClass \Drupal\Component\Datetime\DateTimePlus @group Datetime

Namespace

Drupal\Tests\Component\Datetime

Code

public function testCheckArray(array $array, $expected) {
  $this
    ->assertSame($expected, DateTimePlus::checkArray($array));
}