summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/file.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-30 16:43:20 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-30 16:43:20 +0000
commit92a8adea653b29a9e6ee7778e8628f57b959ca4f (patch)
tree0fd5b18555aff73bfe4bc5aa3479db3090ad4cf8 /modules/simpletest/tests/file.test
parentcac5dd8a66a07887aca4c4730d56978eaf26c70b (diff)
downloadbrdo-92a8adea653b29a9e6ee7778e8628f57b959ca4f.tar.gz
brdo-92a8adea653b29a9e6ee7778e8628f57b959ca4f.tar.bz2
- Patch #352470 by scor: fixed typos and grammar in comments.
Diffstat (limited to 'modules/simpletest/tests/file.test')
-rw-r--r--modules/simpletest/tests/file.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index 93f24f942..eadafcc83 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -581,7 +581,7 @@ class FileUnmanagedDeleteTest extends FileTestCase {
*/
function testMissing() {
// Try to delete a non-existing file
- $this->assertTrue(file_unmanaged_delete(file_directory_path() . '/' . $this->randomName()), t('Returns true when deleting a non-existant file.'));
+ $this->assertTrue(file_unmanaged_delete(file_directory_path() . '/' . $this->randomName()), t('Returns true when deleting a non-existent file.'));
}
/**
@@ -644,7 +644,7 @@ class FileUnmanagedMoveTest extends FileTestCase {
* Try to move a missing file.
*/
function testMissing() {
- // Move non-existant file.
+ // Move non-existent file.
$new_filepath = file_unmanaged_move($this->randomName(), $this->randomName());
$this->assertFalse($new_filepath, t('Moving a missing file fails.'));
}
@@ -712,10 +712,10 @@ class FileUnmanagedCopyTest extends FileTestCase {
}
/**
- * Copy a non-existant file.
+ * Copy a non-existent file.
*/
- function testNonExistant() {
- // Copy non-existant file
+ function testNonExistent() {
+ // Copy non-existent file
$desired_filepath = $this->randomName();
$this->assertFalse(file_exists($desired_filepath), t("Randomly named file doesn't exists."));
$new_filepath = file_unmanaged_copy($desired_filepath, $this->randomName());
@@ -873,7 +873,7 @@ class FileLoadTest extends FileHookTestCase {
}
/**
- * Try to load a non-existant file by fid.
+ * Try to load a non-existent file by fid.
*/
function testLoadMissingFid() {
$this->assertFalse(file_load(-1), t("Try to load an invalid fid fails."));
@@ -881,7 +881,7 @@ class FileLoadTest extends FileHookTestCase {
}
/**
- * Try to load a non-existant file by filepath.
+ * Try to load a non-existent file by filepath.
*/
function testLoadMissingFilepath() {
$this->assertFalse(file_load(array('filepath' => 'misc/druplicon.png')), t("Try to load a file that doesn't exist in the database fails."));
@@ -889,7 +889,7 @@ class FileLoadTest extends FileHookTestCase {
}
/**
- * Try to load a non-existant file by status.
+ * Try to load a non-existent file by status.
*/
function testLoadInvalidStatus() {
$this->assertFalse(file_load(array('status' => -99)), t("Trying to load a file with an invalid status fails."));