mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-21 20:56:07 +03:00
OpenCart integration plugin
src/upload | ||
tests | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
composer.json | ||
composer.lock | ||
LICENSE | ||
phpunit.xml | ||
README.md | ||
README.ru.md | ||
RoboFile.php |
OpenCart Project Template
Getting Started
- Create a new project:
composer create-project beyondit/opencart-project-template ./my/project/folder -s dev
- Copy the
.env.sample
file to.env
and set the configuration parameters respectively - Run
bin/robo opencart:setup
and afterwardsbin/robo opencart:run
on command line (bin/robo opencart:run &
to run in background) - Open
http://localhost:8000
in your browser
Robo Commands
bin/robo opencart:setup
: Install OpenCart with configuration set in.env
filebin/robo opencart:run
: Run OpenCart on a php build-in web server on port 8000bin/robo project:deploy
: Mirror contents of the src folder to the OpenCart test environmentbin/robo project:watch
: Redeploy after changes inside the src/ folder or the composer.json filebin/robo project:package
: Package abuild.ocmod.zip
inside the target/ folder
Writing Tests
- Based on the OpenCart Testing Suite project tests can be written.
- After successful setup and deployment, tests can be executed by running the
bin/phpunit
command. - Two examples inside the
/tests
folder are given, which can be executed as separat Testsuites bybin/phpunit --testsuite admin-tests
orbin/phpunit --testsuite catalog-tests