Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Replace __DIR__ with dirname( __FILE__ ) for sake of PHP 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jul 19, 2016
1 parent af6e54d commit 17e3725
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/php/test-class-wp-customize-posts.php
Expand Up @@ -139,10 +139,10 @@ public function test_add_customize_nonce() {
*/
public function test_add_support() {
$posts = new WP_Customize_Posts( $this->wp_customize );
require_once __DIR__ . '/../../php/class-customize-posts-support.php';
require_once __DIR__ . '/../../php/class-customize-posts-theme-support.php';
require_once __DIR__ . '/../../php/class-customize-posts-plugin-support.php';
require_once __DIR__ . '/../../php/plugin-support/class-customize-posts-jetpack-support.php';
require_once dirname( __FILE__ ) . '/../../php/class-customize-posts-support.php';
require_once dirname( __FILE__ ) . '/../../php/class-customize-posts-theme-support.php';
require_once dirname( __FILE__ ) . '/../../php/class-customize-posts-plugin-support.php';
require_once dirname( __FILE__ ) . '/../../php/plugin-support/class-customize-posts-jetpack-support.php';

$this->assertEmpty( $posts->supports );
$posts->add_support( 'Customize_Posts_Jetpack_Support' );
Expand Down

0 comments on commit 17e3725

Please sign in to comment.