TASK: Make test work with TYPO3 7.x

* Do not overwrite base ts setup, keep it and add test specific.
* Adjust order of labels.
This commit is contained in:
Daniel Siepmann 2017-05-11 12:50:31 +02:00
parent f9ec3ada4e
commit eba74ebb93
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -98,7 +98,10 @@ class IndexTcaTableTest extends AbstractFunctionalTestCase
*/ */
public function indexingRespectsUserWhereClause() public function indexingRespectsUserWhereClause()
{ {
$this->setUpFrontendRootPage(1, ['EXT:search_core/Tests/Functional/Fixtures/Indexing/UserWhereClause.ts']); $this->setUpFrontendRootPage(1, array_merge(
parent::getTypoScriptFilesForFrontendRootPage(),
['EXT:search_core/Tests/Functional/Fixtures/Indexing/UserWhereClause.ts']
));
$this->importDataSet('Tests/Functional/Fixtures/Indexing/UserWhereClause.xml'); $this->importDataSet('Tests/Functional/Fixtures/Indexing/UserWhereClause.xml');
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class) \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class)
@ -147,7 +150,7 @@ class IndexTcaTableTest extends AbstractFunctionalTestCase
['_source' => [ ['_source' => [
'uid' => '9', 'uid' => '9',
'CType' => 'Header', // Testing items 'CType' => 'Header', // Testing items
'categories' => ['Category 2', 'Category 1'], // Testing mm (with sorting) 'categories' => ['Category 1', 'Category 2'], // Testing mm (with sorting)
]], ]],
$response->getData()['hits']['hits'][0], $response->getData()['hits']['hits'][0],
false, false,