diff --git a/tests/UnicaenAuthTest/Entity/Ldap/PeopleAdapterTest.php b/tests/UnicaenAuthTest/Entity/Ldap/PeopleAdapterTest.php index 27de38a228d70e1b9bd597e0cf6725d30c36553e..f472c3ce89996e9f26a00c22cc07749cb030aa12 100644 --- a/tests/UnicaenAuthTest/Entity/Ldap/PeopleAdapterTest.php +++ b/tests/UnicaenAuthTest/Entity/Ldap/PeopleAdapterTest.php @@ -30,7 +30,8 @@ class PeopleAdapterTest extends \PHPUnit_Framework_TestCase public function testConstrutorSetsSpecifiedUserId() { - $this->assertEquals($id, $this->entity->getId()); + $entity = new PeopleAdapter(PeopleTestAsset::$data1, $id = 12); + $this->assertEquals($id, $entity->getId()); } public function testGettingIdReturnsLdapUidAsDefaultValue()