Skip to content

Commit 7a451e3

Browse files
committed
Add test verifying content_entity_using_default_storage storage object type
1 parent 53ac37a commit 7a451e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/src/Type/data/entity-type-manager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
assertType('Drupal\taxonomy\TermStorage', $etm->getStorage('taxonomy_term'));
1313
assertType('Drupal\Core\Entity\EntityStorageInterface', $etm->getStorage('search_api_index'));
1414
assertType('Drupal\Core\Config\Entity\ConfigEntityStorage', $etm->getStorage('block'));
15+
// @todo fix this assert with a lookup on known entity class type.
16+
// assertType('Drupal\Core\Entity\Sql\SqlContentEntityStorage', $etm->getStorage('content_entity_using_default_storage'));
17+
assertType('Drupal\Core\Entity\EntityStorageInterface', $etm->getStorage('content_entity_using_default_storage'));
1518
assertType('Drupal\phpstan_fixtures\CustomContentEntityStorage', $etm->getStorage('content_entity_using_custom_storage'));
1619
assertType('Drupal\Core\Config\Entity\ConfigEntityStorage', $etm->getStorage('config_entity_using_default_storage'));
1720
assertType('Drupal\phpstan_fixtures\CustomConfigEntityStorage', $etm->getStorage('config_entity_using_custom_storage'));

0 commit comments

Comments
 (0)