diff --git a/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php b/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php index cc76a043..3ea3bdc 100644 --- a/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php @@ -243,15 +243,9 @@ public function testCalculateDependenciesWithUuid() { $uuid = '1d52762e-b9d8-4177-908f-572d1a5845a4'; $entity = $this->getMock('Drupal\Core\Entity\EntityInterface'); $entity_type = $this->getMock('Drupal\Core\Entity\EntityTypeInterface'); - $entity->expects($this->atLeastOnce()) - ->method('bundle') - ->willReturn('test-bundle'); $entity->expects($this->once()) ->method('getConfigDependencyName') ->willReturn('entity_test:test-bundle:1d52762e-b9d8-4177-908f-572d1a5845a4'); - $entity->expects($this->atLeastOnce()) - ->method('uuid') - ->willReturn($uuid); $this->entityStorage->expects($this->never()) ->method('load'); $this->entityManager->expects($this->once()) @@ -281,15 +275,9 @@ public function testCalculateDependenciesWithEntityId() { $uuid = '1d52762e-b9d8-4177-908f-572d1a5845a4'; $entity = $this->getMock('Drupal\Core\Entity\EntityInterface'); $entity_type = $this->getMock('Drupal\Core\Entity\EntityTypeInterface'); - $entity->expects($this->atLeastOnce()) - ->method('bundle') - ->willReturn('test-bundle'); $entity->expects($this->once()) ->method('getConfigDependencyName') ->willReturn('entity_test:test-bundle:1d52762e-b9d8-4177-908f-572d1a5845a4'); - $entity->expects($this->atLeastOnce()) - ->method('uuid') - ->willReturn($uuid); $this->entityManager->expects($this->once()) ->method('loadEntityByConfigTarget') ->willReturn($entity);