[BUGFIX] Use relative location of Fixtures

This commit is contained in:
Benjamin Serfhos 2018-10-24 17:57:16 +02:00
parent a50cbf25a2
commit 628f76af4b
10 changed files with 18 additions and 18 deletions

View file

@ -52,7 +52,7 @@ abstract class AbstractFunctionalTestCase extends CoreTestCase
*/
protected function getDataSets()
{
return ['Tests/Functional/Fixtures/BasicSetup.xml'];
return ['EXT:search_core/Tests/Functional/Fixtures/BasicSetup.xml'];
}
/**

View file

@ -39,7 +39,7 @@ class FacetTest extends AbstractFunctionalTestCase
{
return array_merge(
parent::getDataSets(),
['Tests/Functional/Fixtures/Searching/Filter.xml']
['EXT:search_core/Tests/Functional/Fixtures/Searching/Filter.xml']
);
}

View file

@ -31,7 +31,7 @@ class FilterTest extends AbstractFunctionalTestCase
{
return array_merge(
parent::getDataSets(),
['Tests/Functional/Fixtures/Searching/Filter.xml']
['EXT:search_core/Tests/Functional/Fixtures/Searching/Filter.xml']
);
}

View file

@ -32,7 +32,7 @@ class IndexTcaTableTest extends AbstractFunctionalTestCase
{
return array_merge(
parent::getDataSets(),
['Tests/Functional/Fixtures/Indexing/IndexTcaTable.xml']
['EXT:search_core/Tests/Functional/Fixtures/Indexing/IndexTcaTable.xml']
);
}
@ -124,7 +124,7 @@ class IndexTcaTableTest extends AbstractFunctionalTestCase
parent::getTypoScriptFilesForFrontendRootPage(),
['EXT:search_core/Tests/Functional/Fixtures/Indexing/UserWhereClause.ts']
));
$this->importDataSet('Tests/Functional/Fixtures/Indexing/UserWhereClause.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/UserWhereClause.xml');
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class)
->get(IndexerFactory::class)
@ -157,7 +157,7 @@ class IndexTcaTableTest extends AbstractFunctionalTestCase
*/
public function resolvesRelations()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/ResolveRelations.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/ResolveRelations.xml');
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class)
->get(IndexerFactory::class)

View file

@ -33,7 +33,7 @@ class TcaRelationResolvingProcessorTest extends AbstractFunctionalTestCase
*/
public function resolveInlineRelation()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/InlineRelation.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/InlineRelation.xml');
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$table = 'sys_file';
@ -55,7 +55,7 @@ class TcaRelationResolvingProcessorTest extends AbstractFunctionalTestCase
*/
public function resolveStaticSelectItems()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/StaticSelectItems.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/StaticSelectItems.xml');
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$table = 'tt_content';
@ -74,7 +74,7 @@ class TcaRelationResolvingProcessorTest extends AbstractFunctionalTestCase
*/
public function resolveForeignDb()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/ForeignDb.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/ForeignDb.xml');
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$table = 'tt_content';
@ -96,7 +96,7 @@ class TcaRelationResolvingProcessorTest extends AbstractFunctionalTestCase
*/
public function resolveForeignMmSelect()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/ForeignMmSelect.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/TcaIndexer/RelationResolver/ForeignMmSelect.xml');
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$table = 'tt_content';

View file

@ -38,7 +38,7 @@ class NonAllowedTablesTest extends AbstractDataHandlerTest
{
return array_merge(
parent::getDataSets(),
['Tests/Functional/Fixtures/Hooks/DataHandler/NonAllowedTables.xml']
['EXT:search_core/Tests/Functional/Fixtures/Hooks/DataHandler/NonAllowedTables.xml']
);
}

View file

@ -26,7 +26,7 @@ class NonAllowedTablesWithMultipleTablesConfiguredTest extends NonAllowedTablesT
{
return array_merge(
parent::getTypoScriptFilesForFrontendRootPage(),
['EXT:search_core/Tests/Functional/Fixtures/Hooks/DataHandler/MultipleAllowedTables.ts']
['EXT:search_core/EXT:search_core/Tests/Functional/Fixtures/Hooks/DataHandler/MultipleAllowedTables.ts']
);
}
}

View file

@ -38,7 +38,7 @@ class ProcessesAllowedTablesTest extends AbstractDataHandlerTest
{
return array_merge(
parent::getDataSets(),
['Tests/Functional/Fixtures/Hooks/DataHandler/AllowedTables.xml']
['EXT:search_core/Tests/Functional/Fixtures/Hooks/DataHandler/AllowedTables.xml']
);
}

View file

@ -33,7 +33,7 @@ class PagesIndexerTest extends AbstractFunctionalTestCase
*/
public function pagesContainAllAdditionalInformation()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/IndexTcaTable.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/IndexTcaTable.xml');
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
$tableName = 'pages';
@ -100,9 +100,9 @@ class PagesIndexerTest extends AbstractFunctionalTestCase
public function rootLineDataSets()
{
return [
'Broken root line' => ['Tests/Functional/Fixtures/Indexing/PagesIndexer/BrokenRootLine.xml'],
'Recycler doktype' => ['Tests/Functional/Fixtures/Indexing/PagesIndexer/Recycler.xml'],
'Extended timing to sub pages' => ['Tests/Functional/Fixtures/Indexing/PagesIndexer/InheritedTiming.xml'],
'Broken root line' => ['EXT:search_core/Tests/Functional/Fixtures/Indexing/PagesIndexer/BrokenRootLine.xml'],
'Recycler doktype' => ['EXT:search_core/Tests/Functional/Fixtures/Indexing/PagesIndexer/Recycler.xml'],
'Extended timing to sub pages' => ['EXT:search_core/Tests/Functional/Fixtures/Indexing/PagesIndexer/InheritedTiming.xml'],
];
}
}

View file

@ -43,7 +43,7 @@ class TcaIndexerTest extends AbstractFunctionalTestCase
*/
public function respectRootLineBlacklist()
{
$this->importDataSet('Tests/Functional/Fixtures/Indexing/TcaIndexer/RespectRootLineBlacklist.xml');
$this->importDataSet('EXT:search_core/Tests/Functional/Fixtures/Indexing/TcaIndexer/RespectRootLineBlacklist.xml');
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
$tableName = 'tt_content';
$tableService = $objectManager->get(