File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 5757 -e DB_NAME=prestashop \
5858 -e DB_USER=root \
5959 -e DB_PASSWD=prestashop \
60- -e PS_INSTALL_AUTO=0 \
60+ -e PS_INSTALL_AUTO=1 \
6161 prestashop/prestashop:${{ matrix.ps-version }}
6262
6363 - name : Wait for PrestaShop to be ready
@@ -116,7 +116,8 @@ jobs:
116116
117117 - name : Create testing database for Integration tests
118118 run : |
119- docker exec prestashop-${{ matrix.module }} bash -c "cd /var/www/html/modules/ps_checkout && php tests/create-test-database.php"
119+ docker exec prestashop-${{ matrix.module }} bash -c "cd /var/www/html && php bin/console prestashop:module install ps_checkout"
120+ docker exec prestashop-${{ matrix.module }} bash -c "cd /var/www/html/modules/ps_checkout && php -d display_errors=1 -d error_reporting=E_ALL tests/create-test-database.php"
120121
121122 - name : Run Infrastructure Integration Tests
122123 continue-on-error : true
Original file line number Diff line number Diff line change 2323
2424if (!getenv ('IS_CI ' )) {
2525 define ('_PS_IN_TEST_ ' , true );
26- define ('_DB_NAME_ ' , 'prestashop ' ); // todo remove once test database is created.
2726}
2827
2928require_once $ projectDir . 'vendor/autoload.php ' ;
Original file line number Diff line number Diff line change 2323
2424if (!getenv ('IS_CI ' )) {
2525 define ('_PS_IN_TEST_ ' , true );
26- define ('_DB_NAME_ ' , 'prestashop ' ); // todo remove once test database is created.
2726}
2827
2928require_once $ projectDir . 'vendor/autoload.php ' ;
Original file line number Diff line number Diff line change 1414 require_once $ rootDirectory . 'autoload.php ' ;
1515}
1616
17- $ sourceHost = defined ( ' _DB_SERVER_ ' ) ? _DB_SERVER_ : 'mysql ' ;
17+ $ sourceHost = 'mysql ' ;
1818$ sourceUser = defined ('_DB_USER_ ' ) ? _DB_USER_ : 'root ' ;
1919$ sourcePassword = defined ('_DB_PASSWD_ ' ) ? _DB_PASSWD_ : 'prestashop ' ;
2020$ sourceDatabase = defined ('_DB_NAME_ ' ) ? _DB_NAME_ : 'prestashop ' ;
Original file line number Diff line number Diff line change 2323
2424if (!getenv ('IS_CI ' )) {
2525 define ('_PS_IN_TEST_ ' , true );
26- define ('_DB_NAME_ ' , 'prestashop ' ); // todo remove once test database is created.
2726}
2827
2928require_once $ projectDir . 'vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments