Making WordPress.org

Changeset 15047


Ignore:
Timestamp:
08/07/2026 01:37:15 PM (2 weeks ago)
Author:
obenland
Message:

Fix unit tests after GitHub outage.

Closes https://github.com/WordPress/wordpress.org/pull/770.

Location:
sites/trunk/environments/plugin-directory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/environments/plugin-directory/.wp-env.test.json

    r14810 r15047  
    55                "../wordpress.org/public_html/wp-content/plugins/plugin-directory"
    66        ],
     7        "mappings": {
     8                "wp-content/env-bin": "./plugin-directory/bin"
     9        },
    710        "lifecycleScripts": {
    811                "afterStart": "bash plugin-directory/bin/after-start-test.sh"
     12        },
     13        "config": {
     14                "PLUGINS_TABLE_PREFIX": "wp_"
    915        }
    1016}
  • sites/trunk/environments/plugin-directory/bin/after-start-test.sh

    r14810 r15047  
    22#
    33# 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.
    56#
    67
     
    1112$RUN composer global require -W phpunit/phpunit:^11.0 2>&1
    1213$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.
     17echo "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.