Commit 4005d2a4 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction mauvaise classe.

parent d0195c34
......@@ -2,7 +2,8 @@
namespace UnicaenAuthTest\Authentication\Storage;
use PHPUnit_Framework_TestCase;
use UnicaenAppTest\Entity\Ldap\TestAsset\People;
use UnicaenApp\Entity\Ldap\People;
use UnicaenAppTest\Entity\Ldap\TestAsset\People as PeopleTestAsset;
use UnicaenAuth\Authentication\Storage\Ldap;
use Zend\ServiceManager\ServiceManager;
......@@ -93,7 +94,7 @@ class LdapTest extends PHPUnit_Framework_TestCase
public function testReadingReturnsFoundUser()
{
$entity = new People();
$entity = new People(PeopleTestAsset::$data1);
$this->mapper->expects($this->once())
->method('findOneByUsername')
......@@ -108,7 +109,7 @@ class LdapTest extends PHPUnit_Framework_TestCase
{
$this->mapper->expects($this->once())
->method('findOneByUsername')
->will($this->returnValue(new People()));
->will($this->returnValue(new People(PeopleTestAsset::$data1)));
$this->storage->write('username');
$firestResult = $this->storage->read();
......
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