You are here

public function DateRecurBaseFieldTest::testOccurrenceTableDrop in Recurring Dates Field 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/DateRecurBaseFieldTest.php \Drupal\Tests\date_recur\Kernel\DateRecurBaseFieldTest::testOccurrenceTableDrop()
  2. 3.x tests/src/Kernel/DateRecurBaseFieldTest.php \Drupal\Tests\date_recur\Kernel\DateRecurBaseFieldTest::testOccurrenceTableDrop()
  3. 3.1.x tests/src/Kernel/DateRecurBaseFieldTest.php \Drupal\Tests\date_recur\Kernel\DateRecurBaseFieldTest::testOccurrenceTableDrop()

Tests occurrences table is dropped when date recur entity is uninstalled.

@covers \Drupal\date_recur\DateRecurOccurrences::fieldStorageDelete

File

tests/src/Kernel/DateRecurBaseFieldTest.php, line 69

Class

DateRecurBaseFieldTest
Tests base fields.

Namespace

Drupal\Tests\date_recur\Kernel

Code

public function testOccurrenceTableDrop() {
  $this->container
    ->get('module_installer')
    ->uninstall([
    'date_recur_entity_test',
  ]);
  $tableName = 'date_recur__dr_entity_test__dr';
  $actualExists = $this->container
    ->get('database')
    ->schema()
    ->tableExists($tableName);
  $this
    ->assertFalse($actualExists);
}