protected function DateRecurNonRecurringHelperUnitTest::createHelper in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurNonRecurringHelperUnitTest::createHelper()
- 3.x tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurNonRecurringHelperUnitTest::createHelper()
- 3.0.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\UnitCode
protected function createHelper(?\DateTimeInterface ...$args) {
return DateRecurNonRecurringHelper::createInstance('', ...$args);
}