From f4176ae97dc9ea56d15c9d9f0fdd7bf28b44a656 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 22 Oct 2009 13:29:12 -0700 Subject: Rename No_Direct_access_Test and change the require_once to fully qualify the path to Gallery_Filters.php --- modules/gallery/tests/File_Structure_Test.php | 2 +- modules/gallery/tests/No_Direct_ORM_Access_Test.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/gallery/tests') diff --git a/modules/gallery/tests/File_Structure_Test.php b/modules/gallery/tests/File_Structure_Test.php index 327b6be8..36342fda 100644 --- a/modules/gallery/tests/File_Structure_Test.php +++ b/modules/gallery/tests/File_Structure_Test.php @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -require_once(dirname(__FILE__) . "/Gallery_Filters.php"); +require_once(MODPATH . "gallery/tests/Gallery_Filters.php"); class File_Structure_Test extends Unit_Test_Case { public function no_trailing_closing_php_tag_test() { diff --git a/modules/gallery/tests/No_Direct_ORM_Access_Test.php b/modules/gallery/tests/No_Direct_ORM_Access_Test.php index c6d8df95..440321fa 100644 --- a/modules/gallery/tests/No_Direct_ORM_Access_Test.php +++ b/modules/gallery/tests/No_Direct_ORM_Access_Test.php @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -require_once("Gallery_Filters.php"); +require_once(MODPATH . "gallery/tests/Gallery_Filters.php"); -class No_Direct_Access_Test extends Unit_Test_Case { +class No_Direct_ORM_Access_Test extends Unit_Test_Case { public function no_access_to_users_table_test() { $dir = new UserModuleFilterIterator( new PhpCodeFilterIterator( -- cgit v1.2.3