Issue #2158299 by damiankloip: ConfigEntityUnitTest does not check properties on all loaded entities.

8.0.x
webchick 2013-12-22 13:36:48 -08:00
parent b1eea08183
commit 06d4c62f23
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ class ConfigEntityUnitTest extends DrupalUnitTestBase {
$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.');
}
}
/**