Skip to content
Permalink
Browse files

Merge pull request #1230 from ezsystems/impl-EZP-24274-indexable-chec…

…kbox

Implement EZP-24274: Indexable Checkbox field type
  • Loading branch information...
pspanja committed Apr 30, 2015
2 parents 34c772a + 24674c5 commit 27495e2b29bdd1f6ade8cfc355f4166d3adae56c
@@ -18,7 +18,7 @@
* @group integration
* @group field-type
*/
class CheckboxIntegrationTest extends BaseIntegrationTest
class CheckboxIntegrationTest extends SearchBaseIntegrationTest
{
/**
* Get name of tested field type
@@ -311,4 +311,36 @@ public function providerForTestIsNotEmptyValue()
),
);
}
protected function getValidSearchValueOne()
{
return false;
}
protected function getValidSearchValueTwo()
{
return true;
}
protected function getSearchTargetValueOne()
{
// Handling Legacy Search Engine, which stores Checkbox value as integer
if ( ltrim( get_class( $this->getSetupFactory() ), '\\' ) === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy' )
{
return (int)$this->getValidSearchValueOne();
}
return parent::getSearchTargetValueOne();
}
protected function getSearchTargetValueTwo()
{
// Handling Legacy Search Engine, which stores Checkbox value as integer
if ( ltrim( get_class( $this->getSetupFactory() ), '\\' ) === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy' )
{
return (int)$this->getValidSearchValueTwo();
}
return parent::getSearchTargetValueTwo();
}
}
Oops, something went wrong.

0 comments on commit 27495e2

Please sign in to comment.
You can’t perform that action at this time.