Remove unneeded test as `getClassNameFromIndex` has been removed

This commit is contained in:
jovenden 2018-03-09 13:26:55 +13:00
parent 0fbff7ca6a
commit c110eac8a1
1 changed files with 0 additions and 24 deletions

View File

@ -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()
{
return new \Apache_Solr_Response(