public function ViewStorageTest::testConfigurationEntityCRUD in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Kernel/ViewStorageTest.php \Drupal\Tests\views\Kernel\ViewStorageTest::testConfigurationEntityCRUD()
Tests CRUD operations.
File
- core/
modules/ views/ tests/ src/ Kernel/ ViewStorageTest.php, line 60
Class
- ViewStorageTest
- Tests the CRUD functionality for a view.
Namespace
Drupal\Tests\views\KernelCode
public function testConfigurationEntityCRUD() {
// Get the configuration entity type and controller.
$this->entityType = \Drupal::entityTypeManager()
->getDefinition('view');
$this->controller = $this->container
->get('entity_type.manager')
->getStorage('view');
// Confirm that an info array has been returned.
$this
->assertInstanceOf(EntityTypeInterface::class, $this->entityType);
// CRUD tests.
$this
->loadTests();
$this
->createTests();
$this
->displayTests();
// Helper method tests
$this
->displayMethodTests();
}