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();
} /**
* Tests loading configuration entities.
*/
protected function loadTests() { $view = View::
load('test_view_storage'
);
$data =
$this->
config('views.view.test_view_storage'
)->
get();