You are here

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

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

Creates an unsaved test entity.

Return value

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

1 call to DateRecurViewsFieldTest::createEntity()
DateRecurViewsFieldTest::testField in tests/src/Kernel/DateRecurViewsFieldTest.php
Tests field.

File

tests/src/Kernel/DateRecurViewsFieldTest.php, line 225

Class

DateRecurViewsFieldTest
Tests the results of 'date_recur_date' field plugin.

Namespace

Drupal\Tests\date_recur\Kernel

Code

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