AccelaSearch Prestashop Module is a Prestashop module that allows you to add a powerful search engine to your store.
Minimum Prestashop version: 1.7.0 or higher Minimum PHP version: 7.1 or higher
Routing of ajax calls made by RTK Query is done by official AdminController and managed by a Dispatcher that route the request to src/Controller/CamelCaseController.php dinamically. To add a new route just add row to the controllers/AccelasearchAdmin.php and create a new controller in src/Controller folder.
Create a new service in react/services folder and add it to the service.js file.
You can use localtunnel to expose your local Prestashop installation to the internet.
npx localtunnel --port 8199
Some commands needs to be run inside the container, check make help for more info.
make lint
make lint-fix
make php-lint
make phpstan
make header-check
make header-fix
make test
make autoindex
TYPE=patch make release
Create a file in the tests/Unit
folder with the name of the class you want to test and add the suffix Test.php
.
Take a look at the tests/Unit/ManagerTest.php
file for an example.