You are here

public function DateRecurOccurrenceTableTest::testGetOccurrenceTableName in Recurring Dates Field 8.2

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

Test table name generator.

File

tests/src/Kernel/DateRecurOccurrenceTableTest.php, line 131

Class

DateRecurOccurrenceTableTest
Tests occurrence tables values.

Namespace

Drupal\Tests\date_recur\Kernel

Code

public function testGetOccurrenceTableName() {
  $actual = DateRecurOccurrences::getOccurrenceCacheStorageTableName($this->fieldDefinition);
  $entityTypeId = $this->fieldDefinition
    ->getTargetEntityTypeId();
  $this
    ->assertEquals('date_recur__' . $entityTypeId . '__' . $this->fieldName, $actual);
}