Loading core/modules/forum/tests/src/Unit/Breadcrumb/ForumBreadcrumbBuilderBaseTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -92,16 +92,16 @@ public function testBuild() { $vocab_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface'); $vocab_storage->expects($this->any()) ->method('load') ->will($this->returnValueMap([ ->willReturnMap([ ['forums', $prophecy->reveal()], ])); ]); $entity_type_manager = $this->createMock(EntityTypeManagerInterface::class); $entity_type_manager->expects($this->any()) ->method('getStorage') ->will($this->returnValueMap([ ->willReturnMap([ ['taxonomy_vocabulary', $vocab_storage], ])); ]); $config_factory = $this->getConfigFactoryStub( [ Loading core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -543,9 +543,9 @@ protected function setupAccessArgumentsResolverFactory($constraint = NULL) { $resolver = $this->createMock('Drupal\Component\Utility\ArgumentsResolverInterface'); $resolver->expects($this->any()) ->method('getArguments') ->will($this->returnCallback(function ($callable) use ($route_match) { ->willReturnCallback(function ($callable) use ($route_match) { return [$route_match->getRouteObject()]; })); }); return $resolver; }); Loading core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -100,11 +100,11 @@ protected function setUp(): void { protected function setUpKeyValueEntityStorage($uuid_key = 'uuid') { $this->entityType->expects($this->atLeastOnce()) ->method('getKey') ->will($this->returnValueMap([ ->willReturnMap([ ['id', 'id'], ['uuid', $uuid_key], ['langcode', 'langcode'], ])); ]); $this->entityType->expects($this->atLeastOnce()) ->method('id') ->will($this->returnValue('test_entity_type')); Loading Loading
core/modules/forum/tests/src/Unit/Breadcrumb/ForumBreadcrumbBuilderBaseTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -92,16 +92,16 @@ public function testBuild() { $vocab_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface'); $vocab_storage->expects($this->any()) ->method('load') ->will($this->returnValueMap([ ->willReturnMap([ ['forums', $prophecy->reveal()], ])); ]); $entity_type_manager = $this->createMock(EntityTypeManagerInterface::class); $entity_type_manager->expects($this->any()) ->method('getStorage') ->will($this->returnValueMap([ ->willReturnMap([ ['taxonomy_vocabulary', $vocab_storage], ])); ]); $config_factory = $this->getConfigFactoryStub( [ Loading
core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -543,9 +543,9 @@ protected function setupAccessArgumentsResolverFactory($constraint = NULL) { $resolver = $this->createMock('Drupal\Component\Utility\ArgumentsResolverInterface'); $resolver->expects($this->any()) ->method('getArguments') ->will($this->returnCallback(function ($callable) use ($route_match) { ->willReturnCallback(function ($callable) use ($route_match) { return [$route_match->getRouteObject()]; })); }); return $resolver; }); Loading
core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -100,11 +100,11 @@ protected function setUp(): void { protected function setUpKeyValueEntityStorage($uuid_key = 'uuid') { $this->entityType->expects($this->atLeastOnce()) ->method('getKey') ->will($this->returnValueMap([ ->willReturnMap([ ['id', 'id'], ['uuid', $uuid_key], ['langcode', 'langcode'], ])); ]); $this->entityType->expects($this->atLeastOnce()) ->method('id') ->will($this->returnValue('test_entity_type')); Loading