diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php index cca456e..0386661 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php @@ -111,9 +111,14 @@ function testList() { 'weight' => 1, )); $entity->save(); + $entity = entity_create('config_test', array( + 'id' => 'beta', + 'label' => 'Beta', + 'weight' => 0, + )); + $entity->save(); $list = $controller->load(); - $entity = end($list); - $this->assertEqual($entity->label, 'Omega'); + $this->assertIdentical(array_keys($list), array('beta', 'dotted.default', 'alpha', 'omega')); } /** @@ -175,7 +180,7 @@ function testListUI() { $this->assertFieldByXpath('//td', 'antelope', "Machine name found for added 'Antelope' entity."); // Edit the entity using the operations link. - $this->assertLink('Edit', 1); + $this->assertLinkByHref('admin/structure/config_test/manage/antelope/edit'); $this->clickLink('Edit', 1); $this->assertResponse(200); $this->assertTitle('Edit Antelope | Drupal'); @@ -189,7 +194,7 @@ function testListUI() { $this->assertFieldByXpath('//td', 'albatross', "Machine name found for updated 'Albatross' entity."); // Delete the added entity using the operations link. - $this->assertLink('Delete', 1); + $this->assertLinkByHref('admin/structure/config_test/manage/albatross/delete'); $this->clickLink('Delete', 1); $this->assertResponse(200); $this->assertTitle('Are you sure you want to delete Albatross | Drupal'); diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php index 8563983..0e1d1ae 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php @@ -57,7 +57,7 @@ class ConfigTest extends ConfigEntityBase { public $label; /** - * The weight of the configuration entity in relation to others. + * The weight of the configuration entity. * * @var int */