You are here

public function TimeTest::testCreationWithInvalidArguments in Time Field For Drupal 8.x / 9.x 2.x

Same name and namespace in other branches
  1. 8 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\Unit

Code

public function testCreationWithInvalidArguments() {
  $this
    ->expectException(\InvalidArgumentException::class);
  new Time(50);
}