diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-31 02:11:05 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-31 02:11:05 +0000 |
commit | 08cfd94d52ce2b05e4a7f737c29a97ba9053692e (patch) | |
tree | 9e878404ef8bcbbe392e7a65c0aebb1ffed302a8 /engine/tests/objects/filestore.php | |
parent | 20d4675024b0a6ce58153c681ad8c5ccdd9b7b7b (diff) | |
download | elgg-08cfd94d52ce2b05e4a7f737c29a97ba9053692e.tar.gz elgg-08cfd94d52ce2b05e4a7f737c29a97ba9053692e.tar.bz2 |
updated unit test for file matrix to reflect updates in directory structure and class method names
git-svn-id: http://code.elgg.org/elgg/trunk@7166 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/tests/objects/filestore.php')
-rw-r--r-- | engine/tests/objects/filestore.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/engine/tests/objects/filestore.php b/engine/tests/objects/filestore.php index 050a7f97d..9732f0af4 100644 --- a/engine/tests/objects/filestore.php +++ b/engine/tests/objects/filestore.php @@ -48,12 +48,8 @@ class ElggCoreFilestoreTest extends ElggCoreUnitTest { $user = $this->createTestUser(); $created = date('Y/m/d', $user->time_created); - // check matrix with username - $user_dir = $this->filestore->make_file_matrix($user->username); - $this->assertIdentical($user_dir, "$created/$user->guid/"); - // check matrix with guid - $guid_dir = $this->filestore->make_file_matrix($user->guid); + $guid_dir = $this->filestore->makeFileMatrix($user->guid); $this->assertIdentical($guid_dir, "$created/$user->guid/"); // clean up user @@ -98,11 +94,7 @@ class ElggCoreFilestoreTest extends ElggCoreUnitTest { } class ElggDiskFilestoreTest extends ElggDiskFilestore { - public function make_file_matrix($filename) { - return parent::make_file_matrix($filename); - } - - public function user_file_matrix($guid) { - return parent::user_file_matrix($guid); + public function makeFileMatrix($guid) { + return parent::makeFileMatrix($guid); } } |