You are here

protected function DateRecurViewsOccurrenceFilterTest::createEntity in Recurring Dates Field 8.2

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

Creates an unsaved test entity.

Return value

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

6 calls to DateRecurViewsOccurrenceFilterTest::createEntity()
DateRecurViewsOccurrenceFilterTest::testDateRecurFilterAbsoluteDay in tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php
Tests date recur filter plugin.
DateRecurViewsOccurrenceFilterTest::testDateRecurFilterAbsoluteMonth in tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php
Tests date recur filter plugin.
DateRecurViewsOccurrenceFilterTest::testDateRecurFilterAbsoluteSecond in tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php
Tests date recur filter plugin.
DateRecurViewsOccurrenceFilterTest::testDateRecurFilterAbsoluteYear in tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php
Tests date recur filter plugin.
DateRecurViewsOccurrenceFilterTest::testDateRecurFilterTimezoneNonSecond in tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php
Tests timezone capability for non second granularity.

... See full list

File

tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php, line 774

Class

DateRecurViewsOccurrenceFilterTest
Tests the results of 'date_recur_occurrences_filter' filter plugin.

Namespace

Drupal\Tests\date_recur\Kernel

Code

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