protected function BanMiddlewareTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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 41
Class
- BanMiddlewareTest
- @coversDefaultClass \Drupal\ban\BanMiddleware @group ban
Namespace
Drupal\Tests\ban\UnitCode
protected function setUp() {
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);
}