summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
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
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')
-rw-r--r--modules/simpletest/tests/database_test.test2
-rw-r--r--modules/simpletest/tests/file.test16
-rw-r--r--modules/simpletest/tests/file_test.module4
-rw-r--r--modules/simpletest/tests/xmlrpc.test2
4 files changed, 12 insertions, 12 deletions
diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test
index d6a3b305f..37c6fac5f 100644
--- a/modules/simpletest/tests/database_test.test
+++ b/modules/simpletest/tests/database_test.test
@@ -1558,7 +1558,7 @@ class DatabaseTaggingTestCase extends DatabaseTestCase {
$this->assertEqual($data, $return, t('Corect metadata returned.'));
$return = $query->getMetaData('nothere');
- $this->assertNull($return, t('Non-existant key returned NULL.'));
+ $this->assertNull($return, t('Non-existent key returned NULL.'));
}
}
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."));
diff --git a/modules/simpletest/tests/file_test.module b/modules/simpletest/tests/file_test.module
index 6240f4712..4e7c7e965 100644
--- a/modules/simpletest/tests/file_test.module
+++ b/modules/simpletest/tests/file_test.module
@@ -194,14 +194,14 @@ function file_test_file_update($file) {
}
/**
- * Implemenation of hook_file_copy().
+ * Implementation of hook_file_copy().
*/
function file_test_file_copy($file, $source) {
_file_test_log_call('copy', array($file, $source));
}
/**
- * Implemenation of hook_file_move().
+ * Implementation of hook_file_move().
*/
function file_test_file_move($file, $source) {
_file_test_log_call('move', array($file, $source));
diff --git a/modules/simpletest/tests/xmlrpc.test b/modules/simpletest/tests/xmlrpc.test
index 814c65f8e..c645654b5 100644
--- a/modules/simpletest/tests/xmlrpc.test
+++ b/modules/simpletest/tests/xmlrpc.test
@@ -66,7 +66,7 @@ class XMLRPCValidator1IncTestCase extends DrupalWebTestCase {
$l_res_5[5] = $l_res_5[5]->data; /* override warpping */
$r_res_5 = xmlrpc($xml_url, 'validator1.manyTypesTest', $int_5, $bool_5, $string_5, $double_5, xmlrpc_date($time_5), xmlrpc_base64($base64_5));
/* Contains objects, objects are not equal */
- // See http://drupal.org/node/37766 why this currnetly fails
+ // See http://drupal.org/node/37766 why this currently fails
$this->assertEqual($l_res_5, $r_res_5, 'many types test: %s');