@@ -22,9 +22,9 @@ add the following dependency to your project's composer.json's require-dev secti
2222
2323Then do a ` composer update ` or use ` composer require --dev ` instead.
2424
25- To initialize the testing environment simply run the following:
25+ To initialize the testing environment, e.g. for Shopware 5.4.x simply run the following:
2626
27- vendor/bin/sdTest.sh init
27+ vendor/bin/sdTest.sh init 54
2828
2929This will create some files:
3030
@@ -64,23 +64,29 @@ For deactivating the plugin run:
6464Controlling the testing environment
6565-----------------------------------
6666
67- To start the containers and get back your local shell just run:
67+ List of SHOPWARE_VERSION:
68+ - 52 -> v5.2.x
69+ - 53 -> v5.3.x
70+ - 54 -> v5.4.x
71+ - 55 -> v5.5.x
6872
69- vendor/bin/sdTest.sh start
73+ To start the containers e.g. with shopware 5.4 and get back your local shell just run:
74+
75+ vendor/bin/sdTest.sh start 54
7076
7177To stop the containers run:
7278
73- vendor/bin/sdTest.sh stop
79+ vendor/bin/sdTest.sh stop SHOPWARE_VERSION
7480
7581In stopped state the containers data is saved.
7682
7783To destroy your containers you can run:
7884
79- vendor/bin/sdTest.sh remove
85+ vendor/bin/sdTest.sh remove SHOPWARE_VERSION
8086
8187To restart your containers without loosing data you can run:
8288
83- vendor/bin/sdTest.sh restart
89+ vendor/bin/sdTest.sh restart SHOPWARE_VERSION
8490
8591
8692Can can also run the containers in foreground to monitor the log output of the containers:
@@ -124,10 +130,10 @@ Executing a command in the testing environment
124130----------------------------------------------
125131
126132Commands (for example to clear the cache or to run the setup) can be executed inside the container.
127- You must give a version to execute command on, e.g. 71 for PHP 7.1 container:
133+ You must give a version of php and shopware to execute command on, e.g. 71 for PHP 7.1 container and 54 for Shopware 5.4.x :
128134
129- vendor/bin/sdRunInTest.sh 71 ./app/install.sh
135+ vendor/bin/sdRunInTest.sh 71 54 ./app/install.sh
130136
131137If you want to you can even get a shell inside the PHP container:
132138
133- vendor/bin/sdRunInTest.sh 71 /bin/bash
139+ vendor/bin/sdRunInTest.sh 71 54 /bin/bash
0 commit comments