Making WordPress.org

Changeset 8301


Ignore:
Timestamp:
02/21/2019 12:22:51 AM (6 years ago)
Author:
iandunn
Message:

WordCamp Tests: Define WP_PLUGIN_DIR for convenience and DRYness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/phpunit-bootstrap.php

    r8298 r8301  
    11<?php
     2
     3define( 'WP_PLUGIN_DIR', __DIR__ . '/public_html/wp-content/plugins' );
    24
    35$core_tests_directory = getenv( 'WP_TESTS_DIR' );
     
    2426 * not clear if that would properly isolate them from each other, and allow multiple independent contexts, though.
    2527 */
    26 require_once( __DIR__ . '/public_html/wp-content/plugins/wordcamp-organizer-reminders/tests/bootstrap.php' );
    27 require_once( __DIR__ . '/public_html/wp-content/plugins/wordcamp-remote-css/tests/bootstrap.php' );
     28require_once( WP_PLUGIN_DIR . '/wordcamp-organizer-reminders/tests/bootstrap.php' );
     29require_once( WP_PLUGIN_DIR . '/wordcamp-remote-css/tests/bootstrap.php' );
    2830
    2931require_once( $core_tests_directory . '/includes/bootstrap.php' );
Note: See TracChangeset for help on using the changeset viewer.