Skip to content

bergwerk/search_algolia

 
 

Repository files navigation

Algolia Search Indexer for TYPO3 9LTS

This Extension depends on Codappix/search_core

Known Bugs - Translation Handling

Indexing of records works fine until it comes to pages_language_overlay. This should be obsolete with TYPO3 9

Delete & Update does not work for this indexer and i suggest to use a cron job to reindex this table: typo3cms index:delete pages_language_overlay typo3cms index:index pages_language_overlay

Testing the extension

Test Setup

The first thing you need to do is to go to your extension directory and "tell" composer to set up the testing environment for a TYPO3 version you want to test against. For that, type composer install

Environment Variables

Algolia credentials are taken from environment variables which are located at: /Tests/Functional/.env.example Update this file with your credentials and rename it to /Tests/Functional/.env

Unit Tests

You can now execute the unit tests of your extension simply by calling phpunit with the following command::

TYPO3_PATH_WEB=$PWD/.Build/Web \
\
.Build/bin/phpunit --colors -c \
  .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml \
  Tests/Unit

Functional Tests

You can execute the functional tests of your extension simply by calling phpunit with the following command::

typo3DatabaseName="yourDatabaseName" \
typo3DatabaseUsername="yourUsername" \
typo3DatabasePassword="yourPassword" \
typo3DatabaseHost="localhost" \
TYPO3_PATH_WEB=.Build/web \
.Build/bin/phpunit -v -c Tests/Functional/FunctionalTests.xml

Please note, that you need to specify a database user, that is allowed to create and delete databases for that to work. You can specify an arbitrary database name, it is only used to derive the test database names from.

About

TYPO3 indexer for Algolia Search Engine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.5%
  • HTML 5.5%