/**
* This test verifies, that we get the
* expected and defined criteria from the template.
*
* @group promotions
*/
public function testCriteria(): void
{ $template =
new ActiveDateRange();
static::
assertEquals($this->
getExpectedDateRangeFilter()->
getQueries(),
$template->
getQueries());
} /**
* @throws \Exception
*/
private function getExpectedDateRangeFilter(): MultiFilter
{ $today =
new \
DateTime();
$today =
$today->
setTimezone(new \
DateTimeZone('UTC'
));
$todayStart =
$today->
format('Y-m-d H:i:s'
);