mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Remove unneeded test as getClassNameFromIndex
has been removed
This commit is contained in:
parent
0fbff7ca6a
commit
c110eac8a1
@ -376,30 +376,6 @@ class SolrIndexTest extends SapphireTest
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @dataProvider indexNameProvider
|
|
||||||
* @param string $indexName
|
|
||||||
* @param string $expected
|
|
||||||
*/
|
|
||||||
public function testGetClassNameFromIndex($indexName, $expected)
|
|
||||||
{
|
|
||||||
Environment::putEnv('SS_SOLR_INDEX_PREFIX="foo_"');
|
|
||||||
Environment::putEnv('SS_SOLR_INDEX_SUFFIX="_bar"');
|
|
||||||
|
|
||||||
$this->assertSame($expected, $indexName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array[]
|
|
||||||
*/
|
|
||||||
public function indexNameProvider()
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
['foo_SilverStripe-FullTextSearch-Tests-SolrIndexTest_bar', __CLASS__],
|
|
||||||
['SilverStripe-FullTextSearch-Tests-SolrIndexTest', __CLASS__],
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getFakeRawSolrResponse()
|
protected function getFakeRawSolrResponse()
|
||||||
{
|
{
|
||||||
return new \Apache_Solr_Response(
|
return new \Apache_Solr_Response(
|
||||||
|
Loading…
Reference in New Issue
Block a user