You are here

public function EntityConditionGroupTest::testConstructException in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Unit/Query/EntityConditionGroupTest.php \Drupal\Tests\jsonapi\Unit\Query\EntityConditionGroupTest::testConstructException()
  2. 10 core/modules/jsonapi/tests/src/Unit/Query/EntityConditionGroupTest.php \Drupal\Tests\jsonapi\Unit\Query\EntityConditionGroupTest::testConstructException()

@covers ::__construct

File

core/modules/jsonapi/tests/src/Unit/Query/EntityConditionGroupTest.php, line 34

Class

EntityConditionGroupTest
@coversDefaultClass \Drupal\jsonapi\Query\EntityConditionGroup @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

public function testConstructException() {
  $this
    ->expectException(\InvalidArgumentException::class);
  new EntityConditionGroup('NOT_ALLOWED', []);
}