Home
last modified time | relevance | path

Searched refs:entity_storage (Results 1 – 25 of 73) sorted by relevance

123

/dports/www/drupal8/drupal-8.9.20/core/modules/views/tests/src/Kernel/EventSubscriber/
H A DViewsEntitySchemaSubscriberIntegrationTest.php96 $entity_storage = $this->entityTypeManager->getStorage('view');
101 $views = $entity_storage->loadMultiple();
114 $views = $entity_storage->loadMultiple();
138 $entity_storage = $this->entityTypeManager->getStorage('view');
139 $view = $entity_storage->load('test_view_entity_test');
162 $view = $entity_storage->load('test_view_entity_test_data');
174 $view = $entity_storage->load('test_view_entity_test_data');
264 $view = $entity_storage->load('test_view_entity_test');
286 $view = $entity_storage->load('test_view_entity_test');
480 $view = $entity_storage->load('test_view_entity_test');
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/views/tests/src/Kernel/EventSubscriber/
H A DViewsEntitySchemaSubscriberIntegrationTest.php96 $entity_storage = $this->entityTypeManager->getStorage('view');
101 $views = $entity_storage->loadMultiple();
114 $views = $entity_storage->loadMultiple();
138 $entity_storage = $this->entityTypeManager->getStorage('view');
139 $view = $entity_storage->load('test_view_entity_test');
162 $view = $entity_storage->load('test_view_entity_test_data');
174 $view = $entity_storage->load('test_view_entity_test_data');
264 $view = $entity_storage->load('test_view_entity_test');
286 $view = $entity_storage->load('test_view_entity_test');
480 $view = $entity_storage->load('test_view_entity_test');
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/layout_builder/tests/src/Unit/
H A DDefaultsSectionStorageTest.php170 $entity_storage = $this->prophesize(EntityStorageInterface::class);
171 $entity_storage->load($expected_entity_id)->willReturn('the_return_value');
225 $entity_storage = $this->prophesize(EntityStorageInterface::class);
226 $entity_storage->load($value)->willReturn(NULL);
227 $entity_storage->create($expected_create_values)->willReturn($expected);
230 …$this->entityTypeManager->getStorage('entity_view_display')->willReturn($entity_storage->reveal());
252 $entity_storage = $this->prophesize(EntityStorageInterface::class);
253 $entity_storage->load($expected_entity_id)->willReturn('the_return_value');
332 $entity_storage = $this->prophesize(EntityStorageInterface::class);
333 $entity_storage->load($value)->willReturn(NULL);
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/views/tests/src/Unit/Plugin/field/
H A DFieldTest.php362 $entity_storage = $this->createMock('Drupal\Core\Entity\Sql\SqlEntityStorageInterface');
363 $entity_storage->expects($this->atLeastOnce())
369 ->willReturn($entity_storage);
423 $entity_storage->expects($this->atLeastOnce())
429 ->willReturn($entity_storage);
481 $entity_storage->expects($this->any())
487 ->willReturn($entity_storage);
543 $entity_storage->expects($this->any())
549 ->willReturn($entity_storage);
611 $entity_storage->expects($this->any())
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/views/tests/src/Unit/Plugin/field/
H A DFieldTest.php362 $entity_storage = $this->createMock('Drupal\Core\Entity\Sql\SqlEntityStorageInterface');
363 $entity_storage->expects($this->atLeastOnce())
369 ->willReturn($entity_storage);
423 $entity_storage->expects($this->atLeastOnce())
429 ->willReturn($entity_storage);
481 $entity_storage->expects($this->any())
487 ->willReturn($entity_storage);
543 $entity_storage->expects($this->any())
549 ->willReturn($entity_storage);
611 $entity_storage->expects($this->any())
[all …]
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/KernelTests/Core/Config/
H A DConfigImporterTest.php244 $primary = $entity_storage->load('primary');
248 $secondary = $entity_storage->load('secondary');
290 $primary = $entity_storage->load('primary');
294 $secondary = $entity_storage->load('secondary');
367 $deleter = $entity_storage->load('deleter');
374 $this->assertNull($entity_storage->load('deletee'));
376 $other = $entity_storage->load('other');
430 $this->assertNull($entity_storage->load('deleter'));
431 $this->assertNull($entity_storage->load('deletee'));
469 $this->assertNull($entity_storage->load('deleter'));
[all …]
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/KernelTests/Core/Config/
H A DConfigImporterTest.php244 $primary = $entity_storage->load('primary');
248 $secondary = $entity_storage->load('secondary');
290 $primary = $entity_storage->load('primary');
294 $secondary = $entity_storage->load('secondary');
367 $deleter = $entity_storage->load('deleter');
374 $this->assertNull($entity_storage->load('deletee'));
376 $other = $entity_storage->load('other');
430 $this->assertNull($entity_storage->load('deleter'));
431 $this->assertNull($entity_storage->load('deletee'));
469 $this->assertNull($entity_storage->load('deleter'));
[all …]
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/KernelTests/Config/
H A DDefaultConfigTest.php113 $entity_storage = $config_manager
116 $id = $entity_storage->getIDFromConfigName($config_name, $entity_storage->getEntityType()
118 $entity_storage->load($id)->calculateDependencies()->save();
/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/Config/
H A DConfigImporter.php888 … $entity_storage = $this->configManager->getEntityTypeManager()->getStorage($entity_type_id);
890 …$entity = $entity_storage->load($entity_storage->getIDFromConfigName($name, $entity_type->getConfi…
991 $entity_storage = $this->configManager->getEntityTypeManager()->getStorage($entity_type);
994 if (!($entity_storage instanceof ImportableEntityStorageInterface)) {
995 … "%s" for the "%s" entity type does not support imports', get_class($entity_storage), $entity_type…
997 $entity_storage->$method($name, $new_config, $old_config);
1037 $entity_storage = $this->configManager->getEntityTypeManager()->getStorage($entity_type_id);
1040 if (!($entity_storage instanceof ImportableEntityStorageInterface)) {
1041 … '%s' for the '%s' entity type does not support imports", get_class($entity_storage), $entity_type…
1043 $entity_storage->importRename($names['old_name'], $new_config, $old_config);
/dports/www/drupal8/drupal-8.9.20/core/modules/layout_builder/src/Entity/
H A DLayoutBuilderSampleEntityGenerator.php50 $entity_storage = $this->entityTypeManager->getStorage($entity_type_id);
51 if (!$entity_storage instanceof ContentEntityStorageInterface) {
55 $entity = $entity_storage->createWithSampleValues($bundle_id);
/dports/www/drupal9/drupal-9.2.10/core/modules/layout_builder/src/Entity/
H A DLayoutBuilderSampleEntityGenerator.php50 $entity_storage = $this->entityTypeManager->getStorage($entity_type_id);
51 if (!$entity_storage instanceof ContentEntityStorageInterface) {
55 $entity = $entity_storage->createWithSampleValues($bundle_id);
/dports/www/drupal9/drupal-9.2.10/core/modules/layout_builder/tests/src/Unit/
H A DDefaultsSectionStorageTest.php124 $entity_storage = $this->prophesize(EntityStorageInterface::class);
125 $entity_storage->load($expected_entity_id)->willReturn('the_return_value');
128 …$this->entityTypeManager->getStorage('entity_view_display')->willReturn($entity_storage->reveal());
204 $entity_storage = $this->prophesize(EntityStorageInterface::class);
205 $entity_storage->load($value)->willReturn(NULL);
206 $entity_storage->create($expected_create_values)->willReturn($expected);
209 …$this->entityTypeManager->getStorage('entity_view_display')->willReturn($entity_storage->reveal());
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/KernelTests/Config/
H A DDefaultConfigTest.php154 $entity_storage = $config_manager
157 $id = $entity_storage->getIDFromConfigName($config_name, $entity_storage->getEntityType()
159 $entity_storage->load($id)->calculateDependencies()->save();
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/Config/
H A DConfigImporter.php883 … $entity_storage = $this->configManager->getEntityTypeManager()->getStorage($entity_type_id);
885 …$entity = $entity_storage->load($entity_storage->getIDFromConfigName($name, $entity_type->getConfi…
986 $entity_storage = $this->configManager->getEntityTypeManager()->getStorage($entity_type);
989 if (!($entity_storage instanceof ImportableEntityStorageInterface)) {
990 … "%s" for the "%s" entity type does not support imports', get_class($entity_storage), $entity_type…
992 $entity_storage->$method($name, $new_config, $old_config);
1032 $entity_storage = $this->configManager->getEntityTypeManager()->getStorage($entity_type_id);
1035 if (!($entity_storage instanceof ImportableEntityStorageInterface)) {
1036 … '%s' for the '%s' entity type does not support imports", get_class($entity_storage), $entity_type…
1038 $entity_storage->importRename($names['old_name'], $new_config, $old_config);
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/KernelTests/Core/Path/
H A DLegacyAliasStorageTest.php62 $entity_storage = \Drupal::entityTypeManager()->getStorage('path_alias');
69 $result = $entity_storage->getQuery()
98 $result = $entity_storage->getQuery()
113 $result = $entity_storage->getQuery()->condition('id', $pid)->execute();
/dports/www/drupal8/drupal-8.9.20/core/modules/serialization/tests/src/Unit/Normalizer/
H A DConfigEntityNormalizerTest.php69 $entity_storage = $this->prophesize(EntityStorageInterface::class);
70 $entity_storage->create($expected_storage_data)
85 ->willReturn($entity_storage->reveal());
/dports/www/drupal9/drupal-9.2.10/core/modules/serialization/tests/src/Unit/Normalizer/
H A DConfigEntityNormalizerTest.php69 $entity_storage = $this->prophesize(EntityStorageInterface::class);
70 $entity_storage->create($expected_storage_data)
86 ->willReturn($entity_storage->reveal());
/dports/www/drupal8/drupal-8.9.20/core/modules/node/tests/src/Unit/Plugin/views/field/
H A DNodeBulkFormTest.php46 $entity_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface');
47 $entity_storage->expects($this->any())
55 ->will($this->returnValue($entity_storage));
/dports/www/drupal8/drupal-8.9.20/core/modules/user/tests/src/Unit/Plugin/views/field/
H A DUserBulkFormTest.php46 $entity_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface');
47 $entity_storage->expects($this->any())
55 ->will($this->returnValue($entity_storage));
/dports/www/drupal8/drupal-8.9.20/core/modules/comment/tests/src/Unit/Plugin/views/field/
H A DCommentBulkFormTest.php46 $entity_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface');
47 $entity_storage->expects($this->any())
55 ->will($this->returnValue($entity_storage));
/dports/www/drupal9/drupal-9.2.10/core/modules/node/tests/src/Unit/Plugin/views/field/
H A DNodeBulkFormTest.php46 $entity_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface');
47 $entity_storage->expects($this->any())
55 ->will($this->returnValue($entity_storage));
/dports/www/drupal9/drupal-9.2.10/core/modules/user/tests/src/Unit/Plugin/views/field/
H A DUserBulkFormTest.php46 $entity_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface');
47 $entity_storage->expects($this->any())
55 ->will($this->returnValue($entity_storage));
/dports/www/drupal9/drupal-9.2.10/core/modules/comment/tests/src/Unit/Plugin/views/field/
H A DCommentBulkFormTest.php46 $entity_storage = $this->createMock('Drupal\Core\Entity\EntityStorageInterface');
47 $entity_storage->expects($this->any())
55 ->will($this->returnValue($entity_storage));
/dports/www/drupal8/drupal-8.9.20/core/modules/jsonapi/src/Revisions/
H A DVersionByRel.php52 $entity_storage = $this->entityTypeManager->getStorage($entity->getEntityTypeId());
53 return static::ensureVersionExists($entity_storage->getLatestRevisionId($entity->id()));
/dports/www/drupal9/drupal-9.2.10/core/modules/jsonapi/src/Revisions/
H A DVersionByRel.php52 $entity_storage = $this->entityTypeManager->getStorage($entity->getEntityTypeId());
53 return static::ensureVersionExists($entity_storage->getLatestRevisionId($entity->id()));

123