Skip to content

Commit bc791d4

Browse files
authored
Merge pull request #35 from eug-L/docker-dev-environment
Docker dev environment
2 parents 7020375 + 6d90727 commit bc791d4

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

tests/README.md renamed to README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ And simply run
100100

101101
`source .env.local && composer run test`
102102

103+
## Debugging the test environment/Developing
104+
105+
Ensure you have this line in your `/etc/hosts`
106+
```
107+
127.0.0.1 <WEB_HOST>
108+
```
109+
110+
Then go to `http://<WEB_HOST>/wp-admin` and login with `WORDPRESS_ADMIN_USER` & `WORDPRESS_ADMIN_PASSWORD`
111+
103112
## Running Tests on Github Actions
104113

105114
This repository is set up to use Github Actions to perform automated testing.

readme.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/Coverages/PrivacyOptionsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public static function setupBeforeClass(): void {
2929

3030
self::$web->login();
3131

32-
self::$web->install_plugin();
3332
self::$web->activate_plugin();
3433
self::$web->set_widget( $config->tawk->property_id, $config->tawk->widget_id );
3534
}

tests/Coverages/VisibilityOptionsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public static function setUpBeforeClass(): void {
2828

2929
self::$web->login();
3030

31-
self::$web->install_plugin();
3231
self::$web->activate_plugin();
3332
self::$web->set_widget( $config->tawk->property_id, $config->tawk->widget_id );
3433
}

tests/Coverages/WidgetSelectionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public static function setUpBeforeClass(): void {
2929

3030
self::$web->login();
3131

32-
self::$web->install_plugin();
3332
self::$web->activate_plugin();
3433
}
3534

tests/Coverages/WoocommerceOptionsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public static function setupBeforeClass(): void {
2929

3030
self::$web->login();
3131

32-
self::$web->install_plugin();
3332
self::$web->activate_plugin();
3433
self::$web->set_widget( $config->tawk->property_id, $config->tawk->widget_id );
3534
}

tests/docker/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,19 @@ services:
1919
- db
2020
container_name: wordpress
2121
image: wordpress:latest
22+
ports:
23+
- 80:80
2224
environment:
2325
WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST}
2426
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
2527
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER}
2628
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
2729
WORDPRESS_DEBUG: ${WORDPRESS_DEBUG}
2830
WORDPRESS_CONFIG_EXTRA: |
29-
define('WP_HOME', 'http://${WEB_HOST}');
30-
define('WP_SITEURL', 'http://${WEB_HOST}');
3131
define('FORCE_SSL_ADMIN', false);
3232
volumes:
3333
- wp_data:/var/www/html
34+
- ../../tawkto:/var/www/html/wp-content/plugins/tawkto
3435

3536
wordpress-cli:
3637
depends_on:
@@ -62,6 +63,7 @@ services:
6263
shm_size: 2g
6364
ports:
6465
- ${SELENIUM_PORT}:4444
66+
- 7900:7900
6567
volumes:
6668
db_data: {}
6769
wp_data:

0 commit comments

Comments
 (0)