Commit bc226535 authored by webchick's avatar webchick
Browse files

#320155 by Dave Reid: Fix silly exceptions in file.test.

parent a3a420c3
......@@ -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');
$directory = file_directory_path();
$this->assertTrue(is_file(file_directory_path() . '/.htaccess'), t('Successfully created the .htaccess file in the files directory.'), 'File');
// Verify contents of .htaccess file.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment