public function TimeTest::testCreationWithInvalidArguments in Time Field For Drupal 8.x / 9.x 8
Same name and namespace in other branches
- 2.x tests/src/Unit/TimeTest.php \Drupal\Tests\time_field\Unit\TimeTest::testCreationWithInvalidArguments()
Tests Time class creation.
File
- tests/
src/ Unit/ TimeTest.php, line 18
Class
- TimeTest
- Tests time.
Namespace
Drupal\Tests\time_field\UnitCode
public function testCreationWithInvalidArguments() {
$this
->expectException(\InvalidArgumentException::class);
new Time(50);
}