public function testGetEntityByIdenitifier() { $uuid = '539fb03b-9bc3-47d9-886d-77f56d390d94'; $type = new ArticleType(); $test_entity = $type->createEntity(['uuid' => $uuid]); $collection = new EntityList([$test_entity]); $this->assertEquals($test_entity, $collection->getEntityByIdentifier($uuid)); $this->assertNull($collection->getEntityByIdentifier('notfound')); }