diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-12 06:37:40 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-12 06:37:40 +0000 |
commit | bc22653541bba1be497c4ff8bdb199e61debd466 (patch) | |
tree | d3d2906b30e83180767cf1aa316b10f1c51e2c25 /modules/simpletest | |
parent | a3a420c3e6f3805a91448c877a8a423f7232198c (diff) | |
download | brdo-bc22653541bba1be497c4ff8bdb199e61debd466.tar.gz brdo-bc22653541bba1be497c4ff8bdb199e61debd466.tar.bz2 |
#320155 by Dave Reid: Fix silly exceptions in file.test.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/file.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test index 2943949f3..ae8d35882 100644 --- a/modules/simpletest/tests/file.test +++ b/modules/simpletest/tests/file.test @@ -156,7 +156,7 @@ class FileValidatorTest extends DrupalWebTestCase { $this->image = new stdClass(); $this->image->filepath = 'misc/druplicon.png'; - $this->iamge->filename = basename($this->image->filepath); + $this->image->filename = basename($this->image->filepath); $this->non_image = new stdClass(); $this->non_image->filepath = 'misc/jquery.js'; @@ -427,7 +427,8 @@ class FileDirectoryTest extends FileTestCase { // Remove .htaccess file to then test that it gets re-created. @unlink(file_directory_path() .'/.htaccess'); - file_check_directory(file_directory_path()); + $directory = file_directory_path(); + file_check_directory($directory); $this->assertTrue(is_file(file_directory_path() . '/.htaccess'), t('Successfully created the .htaccess file in the files directory.'), 'File'); // Verify contents of .htaccess file. |