Skip to content

Commit

Permalink
EZP-24270: implemented Date search tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Apr 17, 2015
1 parent bd17e3d commit 36ab4d1
Showing 1 changed file with 13 additions and 1 deletion.
Expand Up @@ -20,7 +20,7 @@
* @group integration
* @group field-type
*/
class DateIntegrationTest extends BaseIntegrationTest
class DateIntegrationTest extends SearchBaseIntegrationTest
{
/**
* Get name of tested field type
Expand Down Expand Up @@ -339,4 +339,16 @@ public function providerForTestIsNotEmptyValue()
),
);
}

protected function getValidSearchValueOne()
{
$date = new DateTime();
return $date->setTimestamp( 123456 )->setTime( 0, 0, 0 )->getTimestamp();
}

protected function getValidSearchValueTwo()
{
$date = new DateTime();
return $date->setTimestamp( 234567 )->setTime( 0, 0, 0 )->getTimestamp();
}
}

0 comments on commit 36ab4d1

Please sign in to comment.