initialState = $this->createMock(IInitialState::class); $this->clientMapper = $this->createMock(ClientMapper::class); $this->admin = new Admin( $this->initialState, $this->clientMapper, $this->createMock(IURLGenerator::class), $this->createMock(ICrypto::class), $this->createMock(LoggerInterface::class) ); } public function testGetForm() { $expected = new TemplateResponse( 'oauth2', 'admin', [], '' ); $this->assertEquals($expected, $this->admin->getForm()); } public function testGetSection() { $this->assertSame('security', $this->admin->getSection()); } public function testGetPriority() { $this->assertSame(100, $this->admin->getPriority()); } }