You are here

protected function ViewStorageTest::deleteTests in Views (for Drupal 7) 8.3

Tests deleting configuration entities.

1 call to ViewStorageTest::deleteTests()
ViewStorageTest::testConfigurationEntityCRUD in lib/Drupal/views/Tests/ViewStorageTest.php
Tests CRUD operations.

File

lib/Drupal/views/Tests/ViewStorageTest.php, line 230
Definition of Drupal\views\Tests\ViewStorageTest.

Class

ViewStorageTest
Tests the functionality of ViewStorage and ViewStorageController.

Namespace

Drupal\views\Tests

Code

protected function deleteTests() {
  $view = $this
    ->loadView('tracker');

  // Delete the config.
  $view
    ->delete();
  $config = config('views.view.tracker');
  $this
    ->assertTrue($config
    ->isNew(), 'Deleted config is now new.');
}