function EntityConditionGroupTest::testConstructException

Tests construct exception.

@legacy-covers ::__construct

File

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

Class

EntityConditionGroupTest
Tests Drupal\jsonapi\Query\EntityConditionGroup.

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.