diff --git a/Tests/Functional/Connection/Elasticsearch/IndexTcaTableTest.php b/Tests/Functional/Connection/Elasticsearch/IndexTcaTableTest.php index 9f9b50b..b6a3adf 100644 --- a/Tests/Functional/Connection/Elasticsearch/IndexTcaTableTest.php +++ b/Tests/Functional/Connection/Elasticsearch/IndexTcaTableTest.php @@ -98,7 +98,10 @@ class IndexTcaTableTest extends AbstractFunctionalTestCase */ 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'); \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class) diff --git a/Tests/Functional/Hooks/DataHandler/AbstractDataHandlerTest.php b/Tests/Functional/Hooks/DataHandler/AbstractDataHandlerTest.php index 7a7569e..a26021d 100644 --- a/Tests/Functional/Hooks/DataHandler/AbstractDataHandlerTest.php +++ b/Tests/Functional/Hooks/DataHandler/AbstractDataHandlerTest.php @@ -41,15 +41,10 @@ abstract class AbstractDataHandlerTest extends AbstractFunctionalTestCase $objectManager = GeneralUtility::makeInstance(ObjectManager::class); - $this->subject = $this->getAccessibleMock( - DataHandlerService::class, - [ - 'add', - 'update', - 'delete', - ], - [$objectManager->get(ConfigurationContainerInterface::class)] - ); + $this->subject = $this->getMockBuilder(DataHandlerService::class) + ->setConstructorArgs([$objectManager->get(ConfigurationContainerInterface::class)]) + ->setMethods(['add', 'update', 'delete']) + ->getMock(); // This way TYPO3 will use our mock instead of a new instance. $GLOBALS['T3_VAR']['getUserObj']['&' . DataHandlerHook::class] = new DataHandlerHook($this->subject); diff --git a/Tests/Functional/Indexing/TcaIndexer/RelationResolverTest.php b/Tests/Functional/Indexing/TcaIndexer/RelationResolverTest.php index 0010e30..959b1d3 100644 --- a/Tests/Functional/Indexing/TcaIndexer/RelationResolverTest.php +++ b/Tests/Functional/Indexing/TcaIndexer/RelationResolverTest.php @@ -37,6 +37,10 @@ class RelationResolverTest extends AbstractFunctionalTestCase $objectManager = GeneralUtility::makeInstance(ObjectManager::class); $table = 'sys_file'; + // Only by adding the field to showitem, it will be processed by FormEngine. + // We use this field to test inline relations, as there is only one alternative. + $GLOBALS['TCA']['sys_file']['types'][1]['showitem'] .= ',metadata'; + $subject = $objectManager->get(TcaTableService::class, $table); $record = BackendUtility::getRecord($table, 1); $subject->prepareRecord($record); diff --git a/Tests/Functional/Indexing/TcaIndexerTest.php b/Tests/Functional/Indexing/TcaIndexerTest.php index e3af23b..056af39 100644 --- a/Tests/Functional/Indexing/TcaIndexerTest.php +++ b/Tests/Functional/Indexing/TcaIndexerTest.php @@ -44,15 +44,11 @@ class TcaIndexerTest extends AbstractFunctionalTestCase $objectManager->get(RelationResolver::class), $objectManager->get(ConfigurationContainerInterface::class) ); - $connection = $this->getAccessibleMock( - Elasticsearch::class, - [ - 'addDocuments', - ], - [], - '', - false - ); + + $connection = $this->getMockBuilder(Elasticsearch::class) + ->setMethods(['addDocuments']) + ->disableOriginalConstructor() + ->getMock(); $connection->expects($this->once()) ->method('addDocuments') diff --git a/composer.json b/composer.json index be5051e..6dccef1 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "ruflin/elastica": "~3.2" }, "require-dev": { - "phpunit/phpunit": "~4.8.0" + "phpunit/phpunit": "~5.7.0" }, "config": { "optimize-autoloader": true, diff --git a/ext_emconf.php b/ext_emconf.php index 0b68b51..6921267 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -18,7 +18,7 @@ $EM_CONF[$_EXTKEY] = [ ], 'state' => 'alpha', 'clearCacheOnLoad' => 1, - 'author' => 'Justus Leon Moroni', - 'author_email' => 'developer@leonmrni.com', + 'author' => 'Daniel Siepmann', + 'author_email' => 'coding@daniel-siepmann.de', 'version' => '1.0.0', ];