mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Fix PHP errors in test
This commit is contained in:
parent
2c653daa9d
commit
0ee34e49e2
@ -2,7 +2,7 @@
|
||||
|
||||
namespace SilverStripe\FullTextSearch\Tests\Solr4ServiceTest;
|
||||
|
||||
use SilverStripe\FullTextSearch\Solr\Solr4Service_Core;
|
||||
use SilverStripe\FullTextSearch\Solr\Services\Solr4Service_Core;
|
||||
|
||||
class Solr4ServiceTest_RecordingService extends Solr4Service_Core
|
||||
{
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
|
||||
use SilverStripe\FullTextSearch\Search\FullTextSearch;
|
||||
use SilverStripe\FullTextSearch\Tests\SolrReindexTest\SolrReindexTest_Variant;
|
||||
|
||||
/**
|
||||
* Additional tests of solr reindexing processes when run with queuedjobs
|
||||
*/
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
|
||||
use SilverStripe\FullTextSearch\Search\FullTextSearch;
|
||||
use SilverStripe\FullTextSearch\Tests\SolrReindexTest\SolrReindexTest_Variant;
|
||||
|
||||
if (class_exists('Phockito')) {
|
||||
Phockito::include_hamcrest(false);
|
||||
}
|
||||
|
@ -4,6 +4,8 @@ namespace SilverStripe\FullTextSearch\Tests\SolrReindexTest;
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Dev\TestOnly;
|
||||
use SilverStripe\ORM\Queries\SQLSelect;
|
||||
use SilverStripe\ORM\DataQuery;
|
||||
use SilverStripe\FullTextSearch\Tests\SolrReindexTest\SolrReindexTest_Variant;
|
||||
use SilverStripe\Core\Convert;
|
||||
|
||||
@ -18,7 +20,7 @@ class SolrReindexTest_ItemExtension extends DataExtension implements TestOnly
|
||||
* @param SQLQuery $query
|
||||
* @param DataQuery $dataQuery
|
||||
*/
|
||||
public function augmentSQL(SilverStripe\ORM\Queries\SQLSelect $query, SilverStripe\ORM\DataQuery $dataQuery = NULL)
|
||||
public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = NULL)
|
||||
{
|
||||
$variant = SolrReindexTest_Variant::get_current();
|
||||
if ($variant !== null && !$query->filtersOnID()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user