diff -u b/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php --- b/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php @@ -99,8 +99,9 @@ * @covers \Drupal\Core\Entity\EntityListBuilder::getOperations */ public function testGetOperations() { + $operation_name = $this->randomName(); $operations = array( - $this->randomName() => array( + $operation_name => array( 'title' => $this->randomName(), ), ); @@ -135,6 +136,9 @@ $this->assertArrayHasKey('delete', $operations); $this->assertInternalType('array', $operations['delete']); $this->assertArrayHasKey('title', $operations['delete']); + $this->assertArrayHasKey($operation_name, $operations); + $this->assertInternalType('array', $operations[$operation_name]); + $this->assertArrayHasKey('title', $operations[$operation_name]); } /**