You are here

protected function DateRecurOccurrenceTableTest::createEntity in Recurring Dates Field 3.0.x

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

Creates an unsaved test entity.

Return value

\Drupal\date_recur_entity_test\Entity\DrEntityTestRev A test entity.

2 calls to DateRecurOccurrenceTableTest::createEntity()
DateRecurOccurrenceTableTest::testOccurrenceTableValues in tests/src/Kernel/DateRecurOccurrenceTableTest.php
Tests values of occurrence table.
DateRecurOccurrenceTableTest::testTableRows in tests/src/Kernel/DateRecurOccurrenceTableTest.php
Ensure occurrence table rows are created.
1 method overrides DateRecurOccurrenceTableTest::createEntity()
DateRecurOccurrenceTableAttachedTest::createEntity in tests/src/Kernel/DateRecurOccurrenceTableAttachedTest.php

File

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

Class

DateRecurOccurrenceTableTest
Tests occurrence tables values.

Namespace

Drupal\Tests\date_recur\Kernel

Code

protected function createEntity() {
  return DrEntityTestRev::create();
}