public function testGetIdentifierValue() { $localisation = $this->genericEntityManager->getEntity('recolnat', 'localisation', 15248883); $this->integer($this->genericEntityManager->getIdentifierValue($localisation))->isEqualTo(15248883); $this->exception(function ($localisation) { $this->genericEntityManager->getIdentifierValue($localisation); })->isInstanceOf('Exception'); }