diff options
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 14 | ||||
-rw-r--r-- | modules/simpletest/simpletest.module | 6 | ||||
-rw-r--r-- | modules/simpletest/simpletest.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/database_test.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/file.test | 16 | ||||
-rw-r--r-- | modules/simpletest/tests/file_test.module | 4 | ||||
-rw-r--r-- | modules/simpletest/tests/xmlrpc.test | 2 |
7 files changed, 23 insertions, 23 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 0185c632c..a453caa7c 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -193,7 +193,7 @@ class DrupalWebTestCase { $backtrace = debug_backtrace(); // The first element is the call. The second element is the caller. - // We skip calls that occured in one of the methods of DrupalWebTestCase + // We skip calls that occurred in one of the methods of DrupalWebTestCase // or in an assertion function. while (($caller = $backtrace[1]) && ((isset($caller['class']) && $caller['class'] == 'DrupalWebTestCase') || @@ -1000,7 +1000,7 @@ class DrupalWebTestCase { */ protected function parse() { if (!$this->elements) { - // DOM can load HTML soup. But, HTML soup can throw warnings, supress + // DOM can load HTML soup. But, HTML soup can throw warnings, suppress // them. @$htmlDom = DOMDocument::loadHTML($this->content); if ($htmlDom) { @@ -1063,7 +1063,7 @@ class DrupalWebTestCase { * $edit = array(...); * $this->drupalPost(NULL, $edit, t('Save')); * @param $edit - * Field data in an assocative array. Changes the current input fields + * Field data in an associative array. Changes the current input fields * (where possible) to the values indicated. A checkbox can be set to * TRUE to be checked and FALSE to be unchecked. Note that when a form * contains file upload fields, other fields cannot start with the '@' @@ -1314,7 +1314,7 @@ class DrupalWebTestCase { } /** - * Peform an xpath search on the contents of the internal browser. The search + * Perform an xpath search on the contents of the internal browser. The search * is relative to the root element (HTML tag normally) of the page. * * @param $xpath @@ -1606,7 +1606,7 @@ class DrupalWebTestCase { /** * Pass if the text IS found on the text version of the page. The text version - * is the equivilent of what a user would see when viewing through a web browser. + * is the equivalent of what a user would see when viewing through a web browser. * In other words the HTML has been filtered out of the contents. * * @param $text @@ -1624,7 +1624,7 @@ class DrupalWebTestCase { /** * Pass if the text is NOT found on the text version of the page. The text version - * is the equivilent of what a user would see when viewing through a web browser. + * is the equivalent of what a user would see when viewing through a web browser. * In other words the HTML has been filtered out of the contents. * * @param $text @@ -1956,7 +1956,7 @@ class DrupalWebTestCase { * Assert the page responds with the specified response code. * * @param $code - * Reponse code. For example 200 is a successful page request. For a list + * Response code. For example 200 is a successful page request. For a list * of all codes see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html. * @param $message * Message to display. diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index 6711337ba..53acb6dd2 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -43,7 +43,7 @@ function simpletest_perm() { } /** - * Implemenation of hook_theme(). + * Implementation of hook_theme(). */ function simpletest_theme() { return array( @@ -520,7 +520,7 @@ function simpletest_clean_environment() { } /** - * Removed prefixed talbes from the database that are left over from crashed tests. + * Removed prefixed tables from the database that are left over from crashed tests. */ function simpletest_clean_database() { $tables = db_find_tables(Database::getActiveConnection()->prefixTables('{simpletest}') . '%'); @@ -565,7 +565,7 @@ function simpletest_clean_temporary_directories() { } /** - * Remove all files from specified firectory and then remove directory. + * Remove all files from specified directory and then remove directory. * * @param string $path Directory path. */ diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test index 40d48f435..b6a6d3dcc 100644 --- a/modules/simpletest/simpletest.test +++ b/modules/simpletest/simpletest.test @@ -9,7 +9,7 @@ class SimpleTestTestCase extends DrupalWebTestCase { /** * Store the test ID from each test run for comparison, to ensure they are - * incramenting. + * incrementing. */ protected $test_ids = array(); 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'); |