public function DateRecurOccurrenceTableTest::testGetOccurrenceTableName in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/DateRecurOccurrenceTableTest.php \Drupal\Tests\date_recur\Kernel\DateRecurOccurrenceTableTest::testGetOccurrenceTableName()
- 3.x tests/src/Kernel/DateRecurOccurrenceTableTest.php \Drupal\Tests\date_recur\Kernel\DateRecurOccurrenceTableTest::testGetOccurrenceTableName()
- 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\KernelCode
public function testGetOccurrenceTableName() {
$actual = DateRecurOccurrences::getOccurrenceCacheStorageTableName($this->fieldDefinition);
$entityTypeId = $this->fieldDefinition
->getTargetEntityTypeId();
$this
->assertEquals('date_recur__' . $entityTypeId . '__' . $this->fieldName, $actual);
}