function EntityConditionGroupTest::testConstructException

Same name 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()
  3. 11.x 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', []);
}

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