public function testLoginWithUsername()
{
// Setup test
$app = $this->getApp();
$loginMock = $this->getMockLogin();
$loginMock->expects($this->once())->method('login')->willReturn(true);
// Run test
$request = new Request();
$event = new AccessControlEvent($request);
/** @var \Bolt\AccessControl\Login $loginMock */
$result = $loginMock->login('anotheruser', 'test123', $event);
// Check result
$this->assertEquals(true, $result);
}