protected function BanMiddlewareTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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() : 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);
}