@@ -135,34 +135,35 @@ case $TEST_SUITE in
135
135
cd ../../..
136
136
;;
137
137
138
- api-functional)
138
+ graphql- api-functional)
139
139
echo " Installing Magento"
140
140
mysql -uroot -e ' CREATE DATABASE magento2;'
141
- # php bin/magento setup:install -q \
142
- # --language="en_US" \
143
- # --timezone="UTC" \
144
- # --currency="USD" \
145
- # --base-url="http://${MAGENTO_HOST_NAME}/" \
146
- # --admin-firstname="John" \
147
- # --admin-lastname="Doe" \
148
- # --backend-frontname="backend" \
149
- # --admin-email="[email protected] " \
150
- # --admin-user="admin" \
151
- # --use-rewrites=1 \
152
- # --admin-use-security-key=0 \
153
- # --admin-password="123123q"
154
-
155
- # echo "Enabling production mode"
156
- # php bin/magento deploy:mode:set production
141
+ php bin/magento setup:install -q \
142
+ --language=" en_US" \
143
+ --timezone=" UTC" \
144
+ --currency=" USD" \
145
+ --base-url=" http://${MAGENTO_HOST_NAME} /" \
146
+ --admin-firstname=" John" \
147
+ --admin-lastname=" Doe" \
148
+ --backend-frontname=" backend" \
149
+ --admin-email=
" [email protected] " \
150
+ --admin-user=" admin" \
151
+ --use-rewrites=1 \
152
+ --admin-use-security-key=0 \
153
+ --admin-password=" 123123q"
154
+
155
+ echo " Enabling production mode"
156
+ php bin/magento deploy:mode:set production
157
157
158
158
echo " Prepare api-functional tests for running"
159
159
cd dev/tests/api-functional
160
- cp config/install-config-mysql.php.dist config/install-config-mysql.php
161
- sed -e " s?http://localhost/?http:// ${MAGENTO_HOST_NAME} /?g " --in-place ./config/install-config-mysql.php
160
+ cp -r _files/Magento/ * ../../../app/code/Magento # Deploy and enable test modules before running tests
161
+ php ../../../bin/magento setup:upgrade
162
162
163
163
cp ./phpunit_graphql.xml.dist ./phpunit.xml
164
164
sed -e " s?magento.url?${MAGENTO_HOST_NAME} ?g" --in-place ./phpunit.xml
165
165
166
166
cd ../../..
167
+ php bin/magento setup:upgrade
167
168
;;
168
169
esac
0 commit comments