function ViewStorageTest::testConfigurationEntityCRUD in Views (for Drupal 7) 8.3
Tests CRUD operations.
File
- lib/
Drupal/ views/ Tests/ ViewStorageTest.php, line 74 - Definition of Drupal\views\Tests\ViewStorageTest.
Class
- ViewStorageTest
- Tests the functionality of ViewStorage and ViewStorageController.
Namespace
Drupal\views\TestsCode
function testConfigurationEntityCRUD() {
// Get the configuration entity information and controller.
$this->info = entity_get_info('view');
$this->controller = entity_get_controller('view');
// Confirm that an info array has been returned.
$this
->assertTrue(!empty($this->info) && is_array($this->info), 'The View info array is loaded.');
// Confirm we have the correct controller class.
$this
->assertTrue($this->controller instanceof ViewStorageController, 'The correct controller is loaded.');
// CRUD tests.
$this
->loadTests();
$this
->createTests();
$this
->saveTests();
$this
->deleteTests();
$this
->displayTests();
$this
->statusTests();
// Helper method tests
$this
->displayMethodTests();
}