diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 89f2bd99fe311f628263bbecc9eb6bfa51cd9916..7dc0c88ef7d679634cf3e4481b57c922c982fe77 100755
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -23,7 +23,7 @@ require_once $_tests_dir . '/includes/functions.php';
  * Manually load the plugin being tested.
  */
 function _manually_load_plugin() {
-	require dirname( __FILE__, 2 ) . '/view-all-posts-pages.php';
+	require dirname( dirname( __FILE__ ) ) . '/view-all-posts-pages.php';
 }
 tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );