diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-22 13:29:12 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-22 13:29:12 -0700 |
commit | f4176ae97dc9ea56d15c9d9f0fdd7bf28b44a656 (patch) | |
tree | 7be2113aba39091e73dafd35dfebbacdcf554ada | |
parent | 6b51de49c5c6a4030505ff1f979e3e14da06c457 (diff) |
Rename No_Direct_access_Test and change the require_once to fully qualify the path to Gallery_Filters.php
-rw-r--r-- | modules/gallery/tests/File_Structure_Test.php | 2 | ||||
-rw-r--r-- | modules/gallery/tests/No_Direct_ORM_Access_Test.php | 4 |
2 files changed, 3 insertions, 3 deletions
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( |