Skip to content
Snippets Groups Projects
Commit 06d4c62f authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2158299 by damiankloip: ConfigEntityUnitTest does not check properties...

Issue #2158299 by damiankloip: ConfigEntityUnitTest does not check properties on all loaded entities.
parent b1eea081
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,11 @@ public function testStorageControllerMethods() {
$entities = $this->storage->loadByProperties(array('style' => $style));
$this->assertEqual(count($entities), 2, 'Two entities are loaded when the style property is specified.');
$this->assertEqual(reset($entities)->get('style'), $style, 'The loaded entities have the style value specified.');
// Assert that both returned entities have a matching style property.
foreach ($entities as $entity) {
$this->assertIdentical($entity->get('style'), $style, 'The loaded entity has the correct style value specified.');
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment