You are here

protected function RequestParamConditionTest::setUp in Condition Query 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/RequestParamConditionTest.php, line 41

Class

RequestParamConditionTest
Tests that the Request Param Condition is working properly.

Namespace

Drupal\Tests\condition_query\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this->pluginManager = $this->container
    ->get('plugin.manager.condition');

  // Set the test request stack in the container.
  $this->requestStack = new RequestStack();
  $this->container
    ->set('request_stack', $this->requestStack);
}