|
@@ 763-774 (lines=12) @@
|
| 760 |
|
* |
| 761 |
|
* @see \eZ\Publish\API\Repository\SearchService::findContent() |
| 762 |
|
*/ |
| 763 |
|
public function testFindContentFilteredCustomField($queryData, $fixture, $closure = null) |
| 764 |
|
{ |
| 765 |
|
// Check using get_class since the others extend SetupFactory\Legacy |
| 766 |
|
if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
| 767 |
|
$this->markTestSkipped( |
| 768 |
|
'Custom fields are not supported by the legacy search engine.' |
| 769 |
|
); |
| 770 |
|
} |
| 771 |
|
|
| 772 |
|
$query = new Query($queryData); |
| 773 |
|
$this->assertQueryFixture($query, $fixture, $closure); |
| 774 |
|
} |
| 775 |
|
|
| 776 |
|
/** |
| 777 |
|
* Test for the findContentInfo() method. |
|
@@ 802-813 (lines=12) @@
|
| 799 |
|
* |
| 800 |
|
* @see \eZ\Publish\API\Repository\SearchService::findLocations() |
| 801 |
|
*/ |
| 802 |
|
public function testFindLocationsContentFilteredCustomField($queryData, $fixture, $closure = null) |
| 803 |
|
{ |
| 804 |
|
// Check using get_class since the others extend SetupFactory\Legacy |
| 805 |
|
if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
| 806 |
|
$this->markTestSkipped( |
| 807 |
|
'Custom fields are not supported by the legacy search engine.' |
| 808 |
|
); |
| 809 |
|
} |
| 810 |
|
|
| 811 |
|
$query = new LocationQuery($queryData); |
| 812 |
|
$this->assertQueryFixture($query, $fixture, $closure); |
| 813 |
|
} |
| 814 |
|
|
| 815 |
|
/** |
| 816 |
|
* Test for deprecated $criterion property on query object. |
|
@@ 782-793 (lines=12) @@
|
| 779 |
|
* @dataProvider getFilterContentSearchesCustomField |
| 780 |
|
* @see \eZ\Publish\API\Repository\SearchService::findContentInfo() |
| 781 |
|
*/ |
| 782 |
|
public function testFindContentInfoFilteredCustomField($queryData, $fixture, $closure = null) |
| 783 |
|
{ |
| 784 |
|
// Check using get_class since the others extend SetupFactory\Legacy |
| 785 |
|
if (ltrim(get_class($this->getSetupFactory()), '\\') === 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
| 786 |
|
$this->markTestSkipped( |
| 787 |
|
'Custom fields are not supported by the legacy search engine.' |
| 788 |
|
); |
| 789 |
|
} |
| 790 |
|
|
| 791 |
|
$query = new Query($queryData); |
| 792 |
|
$this->assertQueryFixture($query, $fixture, $closure, true); |
| 793 |
|
} |
| 794 |
|
|
| 795 |
|
/** |
| 796 |
|
* Test for the findLocations() method. |