Changeset 15047
- Timestamp:
- 08/07/2026 01:37:15 PM (2 weeks ago)
- Location:
- sites/trunk/environments/plugin-directory
- Files:
-
- 2 edited
-
.wp-env.test.json (modified) (1 diff)
-
bin/after-start-test.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/environments/plugin-directory/.wp-env.test.json
r14810 r15047 5 5 "../wordpress.org/public_html/wp-content/plugins/plugin-directory" 6 6 ], 7 "mappings": { 8 "wp-content/env-bin": "./plugin-directory/bin" 9 }, 7 10 "lifecycleScripts": { 8 11 "afterStart": "bash plugin-directory/bin/after-start-test.sh" 12 }, 13 "config": { 14 "PLUGINS_TABLE_PREFIX": "wp_" 9 15 } 10 16 } -
sites/trunk/environments/plugin-directory/bin/after-start-test.sh
r14810 r15047 2 2 # 3 3 # Runs after wp-env start for the test environment. 4 # Installs PHPUnit 11 and Yoast polyfills in the test container. 4 # Installs PHPUnit 11 and Yoast polyfills in the test container, and creates the 5 # stub tables that live outside WordPress on production. 5 6 # 6 7 … … 11 12 $RUN composer global require -W phpunit/phpunit:^11.0 2>&1 12 13 $RUN composer require --dev yoast/phpunit-polyfills:^4.0 --working-dir=/wordpress-phpunit 2>&1 14 15 # The file only uses CREATE TABLE IF NOT EXISTS, so re-importing it on every 16 # start is safe. 17 echo "Creating stub database tables..." 18 $RUN -- wp db import wp-content/env-bin/database-tables.sql 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)