diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php index 96ac279..1847a98 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php @@ -99,19 +99,20 @@ function testList() { $actual_items = $controller->buildRow($entity); $this->assertIdentical($expected_items, $actual_items, 'Return value from buildRow matches expected.'); // Test sorting. - $entity = entity_create('config_test', array( + $storage_controller = $controller->getStorageController(); + $entity = $storage_controller->create(array( 'id' => 'alpha', 'label' => 'Alpha', 'weight' => 1, )); $entity->save(); - $entity = entity_create('config_test', array( + $entity = $storage_controller->create(array( 'id' => 'omega', 'label' => 'Omega', 'weight' => 1, )); $entity->save(); - $entity = entity_create('config_test', array( + $entity = $storage_controller->create(array( 'id' => 'beta', 'label' => 'Beta', 'weight' => 0,