function BanMiddlewareTest::setUp
Same name in other branches
- 9 core/modules/ban/tests/src/Unit/BanMiddlewareTest.php \Drupal\Tests\ban\Unit\BanMiddlewareTest::setUp()
- 8.9.x core/modules/ban/tests/src/Unit/BanMiddlewareTest.php \Drupal\Tests\ban\Unit\BanMiddlewareTest::setUp()
- 10 core/modules/ban/tests/src/Unit/BanMiddlewareTest.php \Drupal\Tests\ban\Unit\BanMiddlewareTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ ban/ tests/ src/ Unit/ BanMiddlewareTest.php, line 43
Class
- BanMiddlewareTest
- @coversDefaultClass \Drupal\ban\BanMiddleware @group ban
Namespace
Drupal\Tests\ban\UnitCode
protected function setUp() : void {
parent::setUp();
$this->kernel = $this->createMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
$this->banManager = $this->createMock('Drupal\\ban\\BanIpManagerInterface');
$this->banMiddleware = new BanMiddleware($this->kernel, $this->banManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.