Commit 5c1d73d6 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout tests pour meilleure couverture.

parent c78b2b4a
......@@ -91,4 +91,16 @@ class DbTest extends PHPUnit_Framework_TestCase
$result = $this->adapter->authenticate($event);
$this->assertFalse($result);
}
public function testAuthenticateReturnsParentMethodResult()
{
$request = new Request();
$request->setPost(new Parameters(array('identity' => 'bob', 'credential' => "xxxxx")));
$event = new AdapterChainEvent();
$event->setRequest($request);
$result = $this->adapter->authenticate($event);
$this->assertFalse($result);
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment