You are here

protected function DateRecurNonRecurringHelperUnitTest::createHelper in Recurring Dates Field 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurNonRecurringHelperUnitTest::createHelper()
  2. 3.0.x tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurNonRecurringHelperUnitTest::createHelper()
  3. 3.1.x tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurNonRecurringHelperUnitTest::createHelper()

Creates a new helper.

Parameters

\DateTimeInterface[]|null[] $args: Uses same arguments as \Drupal\date_recur\DateRecurNonRecurringHelper::createInstance without the RRULE arg.

Return value

\Drupal\date_recur\DateRecurHelperInterface A new date recur helper instance.

See also

\Drupal\date_recur\DateRecurHelperInterface::createInstance

2 calls to DateRecurNonRecurringHelperUnitTest::createHelper()
DateRecurNonRecurringHelperUnitTest::testInvalidLimit in tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php
Tests invalid argument for limit.
DateRecurNonRecurringHelperUnitTest::testOccurrence in tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php
Test occurrence generation with range limiters.

File

tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php, line 110

Class

DateRecurNonRecurringHelperUnitTest
Tests non-recurring implementation of helper.

Namespace

Drupal\Tests\date_recur\Unit

Code

protected function createHelper(?\DateTimeInterface ...$args) {
  return DateRecurNonRecurringHelper::createInstance('', ...$args);
}