function FilterTest::setUpSchemas

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::setUpSchemas()
  2. 10 core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::setUpSchemas()
  3. 11.x core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::setUpSchemas()

Sets up the schemas.

1 call to FilterTest::setUpSchemas()
FilterTest::setUp in core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php

File

core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php, line 267

Class

FilterTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21jsonapi%21src%21Query%21Filter.php/class/Filter/8.9.x" title="Gathers information about the filter parameter." class="local">\Drupal\jsonapi\Query\Filter</a> @group jsonapi @group jsonapi_query

Namespace

Drupal\Tests\jsonapi\Kernel\Query

Code

protected function setUpSchemas() {
    $this->installSchema('system', [
        'sequences',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->installSchema('user', [
        'users_data',
    ]);
    $this->installSchema('user', []);
    foreach ([
        'user',
        'node',
    ] as $entity_type_id) {
        $this->installEntitySchema($entity_type_id);
    }
}

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