diff -u b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityOperationsProviderUnitTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityOperationsProviderUnitTest.php --- b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityOperationsProviderUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityOperationsProviderUnitTest.php @@ -97,17 +97,15 @@ * Tests getOperations(). */ public function testGetOperations() { - $this->entity->expects($this->at(0)) + $this->entity->expects($this->at(3)) ->method('status') ->will($this->returnValue(TRUE)); + $operations = $this->operationsProvider->getOperations($this->entity, $this->currentUser); $this->assertInternalType('array', $operations); $this->assertArrayHasKey('disable', $operations); $this->assertInternalType('array', $operations['disable']); - $this->entity->expects($this->at(1)) - ->method('status') - ->will($this->returnValue(FALSE)); $operations = $this->operationsProvider->getOperations($this->entity, $this->currentUser); $this->assertInternalType('array', $operations); $this->assertArrayHasKey('enable', $operations);