function EntityConditionGroupTest::constructProvider

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Unit/Query/EntityConditionGroupTest.php \Drupal\Tests\jsonapi\Unit\Query\EntityConditionGroupTest::constructProvider()
  2. 8.9.x core/modules/jsonapi/tests/src/Unit/Query/EntityConditionGroupTest.php \Drupal\Tests\jsonapi\Unit\Query\EntityConditionGroupTest::constructProvider()
  3. 11.x core/modules/jsonapi/tests/src/Unit/Query/EntityConditionGroupTest.php \Drupal\Tests\jsonapi\Unit\Query\EntityConditionGroupTest::constructProvider()

Data provider for testConstruct.

File

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

Class

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

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

public static function constructProvider() {
    return [
        [
            [
                'conjunction' => 'AND',
                'members' => [],
            ],
        ],
        [
            [
                'conjunction' => 'OR',
                'members' => [],
            ],
        ],
    ];
}

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