function ViewStorageTest::testConfigurationEntityCRUD in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/ViewStorageTest.php \Drupal\views\Tests\ViewStorageTest::testConfigurationEntityCRUD()
Tests CRUD operations.
File
- core/
modules/ views/ src/ Tests/ ViewStorageTest.php, line 65 - Contains \Drupal\views\Tests\ViewStorageTest.
Class
- ViewStorageTest
- Tests the CRUD functionality for a view.
Namespace
Drupal\views\TestsCode
function testConfigurationEntityCRUD() {
// Get the configuration entity type and controller.
$this->entityType = \Drupal::entityManager()
->getDefinition('view');
$this->controller = $this->container
->get('entity.manager')
->getStorage('view');
// Confirm that an info array has been returned.
$this
->assertTrue($this->entityType instanceof EntityTypeInterface, 'The View info array is loaded.');
// CRUD tests.
$this
->loadTests();
$this
->createTests();
$this
->displayTests();
// Helper method tests
$this
->displayMethodTests();
}