protected function DateRecurRruleUnitTest::newRule in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/DateRecurRruleUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurRruleUnitTest::newRule()
- 3.x tests/src/Unit/DateRecurRruleUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurRruleUnitTest::newRule()
- 3.0.x tests/src/Unit/DateRecurRruleUnitTest.php \Drupal\Tests\date_recur\Unit\DateRecurRruleUnitTest::newRule()
Constructs a new DateRecurHelper object.
Parameters
string $rrule: The repeat rule.
\DateTime $startDate: The initial occurrence start date.
\DateTime|null $startDateEnd: The initial occurrence end date, or NULL to use start date.
Return value
\Drupal\date_recur\DateRecurHelper A new DateRecurHelper object.
3 calls to DateRecurRruleUnitTest::newRule()
- DateRecurRruleUnitTest::testGenerateOccurrences in tests/
src/ Unit/ DateRecurRruleUnitTest.php - Tests list.
- DateRecurRruleUnitTest::testGetExcluded in tests/
src/ Unit/ DateRecurRruleUnitTest.php - Tests list.
- DateRecurRruleUnitTest::testTz in tests/
src/ Unit/ DateRecurRruleUnitTest.php - Test timezone.
File
- tests/
src/ Unit/ DateRecurRruleUnitTest.php, line 164
Class
- DateRecurRruleUnitTest
- Date recur tests.
Namespace
Drupal\Tests\date_recur\UnitCode
protected function newRule($rrule, \DateTime $startDate, \DateTime $startDateEnd = NULL) {
return DateRecurHelper::create($rrule, $startDate, $startDateEnd);
}