diff --git a/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php b/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php index 4052c6d1df325997344e1539ab36f5f0a39e96eb..570e7e55d7b9912b1e4179e7321722747e93f847 100644 --- a/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php +++ b/core/modules/action/lib/Drupal/action/Tests/ConfigurationTest.php @@ -30,8 +30,7 @@ public static function getInfo() { } /** - * Test the configuration of advanced actions through the administration - * interface. + * Tests configuration of advanced actions through administration interface. */ function testActionConfiguration() { // Create a user with permission to view the actions administration pages. diff --git a/core/modules/action/lib/Drupal/action/Tests/LoopTest.php b/core/modules/action/lib/Drupal/action/Tests/LoopTest.php index a381f7451bb80263076768368f8be6850df36afd..87fa08e566f7178d481a1a00b0c1b9ebf7f4bbe5 100644 --- a/core/modules/action/lib/Drupal/action/Tests/LoopTest.php +++ b/core/modules/action/lib/Drupal/action/Tests/LoopTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Test actions executing in a potential loop, and make sure they abort properly. + * Tests aborting of actions executing in a potential loop. */ class LoopTest extends WebTestBase { @@ -32,7 +32,7 @@ public static function getInfo() { } /** - * Set up a loop with 3 - 12 recursions, and see if it aborts properly. + * Sets up a loop with 3 - 12 recursions, and sees if it aborts properly. */ function testActionLoop() { $user = $this->drupalCreateUser(array('administer actions')); @@ -55,7 +55,9 @@ function testActionLoop() { } /** - * Create an infinite loop by causing a watchdog message to be set, + * Loops watchdog messages up to actions_max_stack times. + * + * Creates an infinite loop by causing a watchdog message to be set, * which causes the actions to be triggered again, up to action_max_stack * times. */ diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php index 1aef68a4a760f3a21e390b619819ecfeb8110b11..dd3ef467f058828d88c6e8ffaaeca47f56d4f636 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php @@ -22,7 +22,7 @@ abstract class AjaxTestBase extends WebTestBase { public static $modules = array('ajax_test', 'ajax_forms_test'); /** - * Assert that a command with the required properties exists within the array of Ajax commands returned by the server. + * Asserts the array of Ajax commands contains the searched command. * * The Ajax framework, via the ajax_render() function, returns an array of * commands. This array sometimes includes commands automatically provided by diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/CommandsTest.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/CommandsTest.php index e7c8d7c4e7797e4c543f82322ab4aa7e74bd8cb2..5a455b7458ba48b614be047d20a6e99273026e49 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/CommandsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/CommandsTest.php @@ -20,7 +20,7 @@ public static function getInfo() { } /** - * Test the various Ajax Commands. + * Tests the various Ajax Commands. */ function testAjaxCommands() { $form_path = 'ajax_forms_test_ajax_commands_form'; diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/ElementValidationTest.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/ElementValidationTest.php index 89c1809e9cf608455426eed028eff0c1e80ce54b..33cf0406ee1658533ec7c444bf1237d70a21d204 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/ElementValidationTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/ElementValidationTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Ajax; /** - * Miscellaneous Ajax tests using ajax_test module. + * Tests using ajax_test module. */ class ElementValidationTest extends AjaxTestBase { public static function getInfo() { @@ -20,7 +20,7 @@ public static function getInfo() { } /** - * Try to post an Ajax change to a form that has a validated element. + * Tries to post an Ajax change to a form that has a validated element. * * The drivertext field is Ajax-enabled. An additional field is not, but * is set to be a required field. In this test the required field is not diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/FormValuesTest.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/FormValuesTest.php index 7950e599880bb19149bdb017a0f0dd7e720c2164..0ea8abf0b6e59d41ec239bc7a5780c0eb4eaa2b9 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/FormValuesTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/FormValuesTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Ajax; /** - * Test that $form_state['values'] is properly delivered to $ajax['callback']. + * Tests that $form_state['values'] is properly delivered to $ajax['callback']. */ class FormValuesTest extends AjaxTestBase { public static function getInfo() { @@ -27,7 +27,7 @@ function setUp() { } /** - * Create a simple form, then POST to system/ajax to change to it. + * Submits forms with select and checkbox elements via AJAX. */ function testSimpleAjaxFormValue() { // Verify form values of a select element. diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php index bd5e5ced5a078a6b0c736230d4255da4634179b4..204701f1222b0ed394e36015eb394fdfea0cde92 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php @@ -20,7 +20,7 @@ public static function getInfo() { } /** - * Test that ajax_render() returns JavaScript settings generated during the page request. + * Ensures ajax_render() returns JavaScript settings from the page request. * * @todo Add tests to ensure that ajax_render() returns commands for new CSS * and JavaScript files to be loaded by the page. See @@ -45,7 +45,7 @@ function testAJAXRender() { } /** - * Test behavior of ajax_render_error(). + * Tests behavior of ajax_render_error(). */ function testAJAXRenderError() { // Verify default error message. @@ -69,7 +69,7 @@ function testAJAXRenderError() { } /** - * Test that new JavaScript and CSS files added during an AJAX request are returned. + * Tests that new JavaScript and CSS files are returned on an AJAX request. */ function testLazyLoad() { $expected = array( diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/MultiFormTest.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/MultiFormTest.php index cffa6b77a663593efcaadf401e7dde950e950855..cf3adaac1c5e85fb75133fb7a2e04f77495d16d9 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/MultiFormTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/MultiFormTest.php @@ -53,7 +53,7 @@ function setUp() { } /** - * Test that a page with the 'page_node_form' included twice works correctly. + * Tests that pages with the 'page_node_form' included twice works correctly. */ function testMultiForm() { // HTML IDs for elements within the field are potentially modified with diff --git a/core/modules/system/lib/Drupal/system/Tests/Batch/PercentagesUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Batch/PercentagesUnitTest.php index 8ba9f799cbc31a0b0eb214def063922f6cdc6cfc..5b92b195d7e57964e27d2bd85d564c084d9e6bf8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Batch/PercentagesUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Batch/PercentagesUnitTest.php @@ -81,7 +81,7 @@ function setUp() { } /** - * Test the _batch_api_percentage() function. + * Tests the _batch_api_percentage() function. */ function testBatchPercentages() { foreach ($this->testCases as $expected_result => $arguments) { diff --git a/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php b/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php index bad7d95e7ff580edc6e3a1c438ad04b2a4ba400e..2f56ecd2b2d7b7f31ea66cc8038e7ce252e248e7 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php @@ -30,7 +30,7 @@ public static function getInfo() { } /** - * Test batches triggered outside of form submission. + * Tests batches triggered outside of form submission. */ function testBatchNoForm() { // Displaying the page triggers batch 1. @@ -41,7 +41,7 @@ function testBatchNoForm() { } /** - * Test batches defined in a form submit handler. + * Tests batches defined in a form submit handler. */ function testBatchForm() { // Batch 0: no operation. @@ -80,7 +80,7 @@ function testBatchForm() { } /** - * Test batches defined in a multistep form. + * Tests batches defined in a multistep form. */ function testBatchFormMultistep() { $this->drupalGet('batch-test/multistep'); @@ -100,7 +100,7 @@ function testBatchFormMultistep() { } /** - * Test batches defined in different submit handlers on the same form. + * Tests batches defined in different submit handlers on the same form. */ function testBatchFormMultipleBatches() { // Batches 1, 2 and 3 are triggered in sequence by different submit @@ -117,7 +117,7 @@ function testBatchFormMultipleBatches() { } /** - * Test batches defined in a programmatically submitted form. + * Tests batches defined in a programmatically submitted form. * * Same as above, but the form is submitted through drupal_form_execute(). */ @@ -135,7 +135,7 @@ function testBatchFormProgrammatic() { } /** - * Test that drupal_form_submit() can run within a batch operation. + * Tests that drupal_form_submit() can run within a batch operation. */ function testDrupalFormSubmitInBatch() { // Displaying the page triggers a batch that programmatically submits a @@ -146,8 +146,9 @@ function testDrupalFormSubmitInBatch() { } /** - * Test batches that return $context['finished'] > 1 do in fact complete. - * See http://drupal.org/node/600836 + * Tests batches that return $context['finished'] > 1 do in fact complete. + * + * @see http://drupal.org/node/600836 */ function testBatchLargePercentage() { // Displaying the page triggers batch 5. @@ -159,7 +160,7 @@ function testBatchLargePercentage() { /** - * Will trigger a pass if the texts were found in order in the raw content. + * Triggers a pass if the texts were found in order in the raw content. * * @param $texts * Array of raw strings to look for . @@ -174,7 +175,7 @@ function assertBatchMessages($texts, $message) { } /** - * Helper function: return expected execution stacks for the test batches. + * Returns expected execution stacks for the test batches. */ function _resultStack($id, $value = 0) { $stack = array(); @@ -241,7 +242,7 @@ function _resultStack($id, $value = 0) { } /** - * Helper function: return expected result messages for the test batches. + * Returns expected result messages for the test batches. */ function _resultMessages($id) { $messages = array(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php index 3cc05b283d4b645713ea8f6dd07386b5e845789d..ae9a1628626f064fbe4a9ed8a4aad7583d30157e 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/GetFilenameUnitTest.php @@ -23,7 +23,7 @@ public static function getInfo() { } /** - * Test that drupal_get_filename() works correctly when the file is not found in the database. + * Tests that drupal_get_filename() works when the file is not in database. */ function testDrupalGetFilename() { // Reset the static cache so we can test the "db is not active" code of diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/HookBootExitTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/HookBootExitTest.php index b90370cd6a5f4bd5b597fc88cf0fbabd82a46488..e9eff7a3de9f3e5219c3f08396b622866142eabf 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/HookBootExitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/HookBootExitTest.php @@ -30,7 +30,7 @@ public static function getInfo() { } /** - * Test calling of hook_boot() and hook_exit(). + * Tests calling of hook_boot() and hook_exit(). */ function testHookBootExit() { // Test with cache disabled. Boot and exit should always fire. diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/IpAddressTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/IpAddressTest.php index 76689490d0c975648d582c359061690446235232..a6f87ef8ef12944f130893085ac2762435fb7b1b 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/IpAddressTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/IpAddressTest.php @@ -48,7 +48,7 @@ function tearDown() { } /** - * test IP Address and hostname + * Tests IP address and hostname. */ function testIPAddressHost() { // Test the normal IP address. diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/MiscUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/MiscUnitTest.php index 18e8925b9cf8b42a5a1b78482bffafee9fbed785..88b9ebb9252cce3eef3aa249d7dc24b5353b08c4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/MiscUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/MiscUnitTest.php @@ -23,7 +23,7 @@ public static function getInfo() { } /** - * Test miscellaneous functions in bootstrap.inc. + * Tests miscellaneous functions in bootstrap.inc. */ function testMisc() { // Test drupal_array_merge_deep(). diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/OverrideServerVariablesUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/OverrideServerVariablesUnitTest.php index c14a6bf1854a2ce668bbb03d8b5b8cef1d3c1f8b..0717b105aac84bc844dce53b40efb8eb8c24dadc 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/OverrideServerVariablesUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/OverrideServerVariablesUnitTest.php @@ -22,7 +22,7 @@ public static function getInfo() { } /** - * Test providing a direct URL to to drupal_override_server_variables(). + * Tests providing a direct URL to to drupal_override_server_variables(). */ function testDrupalOverrideServerVariablesProvidedURL() { $tests = array( diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php index 0f00baf67ba4dfe3bbff92b043fe111f3cb5156f..09dc690039ea052ad414f9bd54543f5a54ff01fc 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/PageCacheTest.php @@ -39,7 +39,7 @@ function setUp() { } /** - * Test support for requests containing If-Modified-Since and If-None-Match headers. + * Tests support of requests with If-Modified-Since and If-None-Match headers. */ function testConditionalRequests() { $config = config('system.performance'); @@ -83,7 +83,7 @@ function testConditionalRequests() { } /** - * Test cache headers. + * Tests cache headers. */ function testPageCache() { $config = config('system.performance'); @@ -125,7 +125,7 @@ function testPageCache() { } /** - * Test page compression. + * Tests page compression. * * The test should pass even if zlib.output_compression is enabled in php.ini, * .htaccess or similar, or if compression is done outside PHP, e.g. by the diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/ResettableStaticUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/ResettableStaticUnitTest.php index 345c61786182d0e8af03a427f08b5f212225c366..23a84b8a5eb0d8ae1d0b3c1159877fa6bb1a294f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/ResettableStaticUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/ResettableStaticUnitTest.php @@ -23,7 +23,9 @@ public static function getInfo() { } /** - * Test that a variable reference returned by drupal_static() gets reset when + * Tests drupal_static() function. + * + * Tests that a variable reference returned by drupal_static() gets reset when * drupal_static_reset() is called. */ function testDrupalStatic() { diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/TimerUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/TimerUnitTest.php index e41fc1778f7ae758248353b923e976a914d59088..ab100e265f0e115d97fceb07c81615c3f4f427fe 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/TimerUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/TimerUnitTest.php @@ -23,9 +23,7 @@ public static function getInfo() { } /** - * Test timer_read() to ensure it properly accumulates time when the timer - * started and stopped multiple times. - * @return + * Tests timer_read() time accumulation accuracy across multiple restarts. */ function testTimer() { timer_start('test'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/VariableTest.php b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/VariableTest.php index 137f2a5e129934345c7fbc414d86f6237dd584f5..9729ea39df3bd8e07c6c0373ed3c5de96f775f9b 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bootstrap/VariableTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bootstrap/VariableTest.php @@ -30,7 +30,7 @@ public static function getInfo() { } /** - * testVariable + * Tests variables then deletes them. */ function testVariable() { // Setting and retrieving values. diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php index e4b275eefe7d8f7fed16211d92807640de15e0b1..6f9c2699d785ab939bcdfb556c910834c3cc0be8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php @@ -19,7 +19,7 @@ abstract class CacheTestBase extends WebTestBase { protected $default_value = 'CacheTest'; /** - * Check whether or not a cache entry exists. + * Checks whether or not a cache entry exists. * * @param $cid * The cache id. @@ -89,7 +89,8 @@ function assertCacheRemoved($message, $cid = NULL, $bin = NULL) { } /** - * Perform the general wipe. + * Performs a general wipe of the bin. + * * @param $bin * The bin to perform the wipe on. */ diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/ClearTest.php b/core/modules/system/lib/Drupal/system/Tests/Cache/ClearTest.php index c91f1db148419cd5b42ae7c012c2b793e9160fdf..2c03b8b2a92159d8a64cd05e96830cdada05aa79 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/ClearTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/ClearTest.php @@ -28,7 +28,7 @@ function setUp() { } /** - * Test drupal_flush_all_caches(). + * Tests drupal_flush_all_caches(). */ function testFlushAllCaches() { // Create cache entries for each flushed cache bin. diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php index 760d3ca36f2af9b82bb263f02636db44afc8817b..c54943f5626cbffca43aa20ae5e8cf941baf42a6 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php @@ -128,8 +128,7 @@ public function tearDown() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::get() and - * Drupal\Core\Cache\CacheBackendInterface::set(). + * Tests the get and set methods of Drupal\Core\Cache\CacheBackendInterface. */ public function testSetGet() { $backend = $this->getCacheBackend(); @@ -150,7 +149,7 @@ public function testSetGet() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::delete(). + * Tests Drupal\Core\Cache\CacheBackendInterface::delete(). */ public function testDelete() { $backend = $this->getCacheBackend(); @@ -174,7 +173,7 @@ public function testDelete() { } /** - * Test data type perservation. + * Tests data type preservation. */ public function testValueTypeIsKept() { $backend = $this->getCacheBackend(); @@ -202,7 +201,7 @@ public function testValueTypeIsKept() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::getMultiple(). + * Tests Drupal\Core\Cache\CacheBackendInterface::getMultiple(). */ public function testGetMultiple() { $backend = $this->getCacheBackend(); @@ -281,7 +280,7 @@ public function testGetMultiple() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::isEmpty(). + * Tests Drupal\Core\Cache\CacheBackendInterface::isEmpty(). */ public function testIsEmpty() { $backend = $this->getCacheBackend(); @@ -296,7 +295,7 @@ public function testIsEmpty() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::deleteMultiple(). + * Tests Drupal\Core\Cache\CacheBackendInterface::deleteMultiple(). */ public function testDeleteMultiple() { $backend = $this->getCacheBackend(); @@ -354,7 +353,7 @@ public function testFlush() { } /** - * Check whether or not a cache entry exists. + * Checks whether or not a cache entry exists. * * @param $cid * The cache id. @@ -370,7 +369,7 @@ protected function checkCacheExists($cid, $bin = null) { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::invalidateTags(). + * Tests Drupal\Core\Cache\CacheBackendInterface::invalidateTags(). */ function testClearTags() { $backend = $this->getCacheBackend(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php index a1f543effae7e2b252c7d454cfaf5cc1c293f24f..87e1731a625a7e2564e7646aabb4006cb5151bc4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Basic tests for drupal_add_feed(). + * Tests drupal_add_feed(). */ class AddFeedTest extends WebTestBase { public static function getInfo() { @@ -22,7 +22,7 @@ public static function getInfo() { } /** - * Test drupal_add_feed() with paths, URLs, and titles. + * Tests drupal_add_feed() with paths, URLs, and titles. */ function testBasicFeedAddNoTitle() { $path = $this->randomName(12); @@ -81,7 +81,7 @@ function testBasicFeedAddNoTitle() { } /** - * Create a pattern representing the RSS feed in the page. + * Creates a pattern representing the RSS feed in the page. */ function urlToRSSLinkPattern($url, $title = '') { // Escape any regular expression characters in the URL ('?' is the worst). diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/AlterTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/AlterTest.php index 9f731537f6cbeeccab7d795d70a1de1763ba27f4..c2f1595936d27ceff9d66eca1df5bd935d5ac68f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/AlterTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/AlterTest.php @@ -30,6 +30,9 @@ public static function getInfo() { ); } + /** + * Tests if the theme has been altered. + */ function testDrupalAlter() { // This test depends on Bartik, so make sure that it is always the current // active theme. diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/AutocompleteTagsUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/AutocompleteTagsUnitTest.php index 512440533032659862b57f0c1cf802da6df46315..82405361f00d9d063edfe9d33f695d4b7e0a3cee 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/AutocompleteTagsUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/AutocompleteTagsUnitTest.php @@ -29,7 +29,7 @@ public static function getInfo() { } /** - * Explode a series of tags. + * Explodes a series of tags. */ function testDrupalExplodeTags() { $string = implode(', ', array_keys($this->validTags)); @@ -38,7 +38,7 @@ function testDrupalExplodeTags() { } /** - * Implode a series of tags. + * Implodes a series of tags. */ function testDrupalImplodeTags() { $tags = array_values($this->validTags); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php index 0268756ff9171f1df374aa2751a6c375108316d4..db0303c26f15fd79503a4ed98391cafac09449a6 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php @@ -36,14 +36,14 @@ function setUp() { } /** - * Check default stylesheets as empty. + * Checks that default stylesheets are empty. */ function testDefault() { $this->assertEqual(array(), drupal_add_css(), 'Default CSS is empty.'); } /** - * Test that stylesheets in module .info files are loaded. + * Tests that stylesheets in module .info files are loaded. */ function testModuleInfo() { $this->drupalGet(''); @@ -172,7 +172,7 @@ function testRenderInlineFullPage() { } /** - * Test CSS ordering. + * Tests CSS ordering. */ function testRenderOrder() { // A module CSS file. @@ -203,7 +203,7 @@ function testRenderOrder() { } /** - * Test CSS override. + * Tests CSS override. */ function testRenderOverride() { $system = drupal_get_path('module', 'system'); @@ -244,8 +244,7 @@ function testAlter() { } /** - * Tests that the query string remains intact when adding CSS files that have - * query string parameters. + * Tests that CSS query string remains intact when added to file. */ function testAddCssFileWithQueryString() { $this->drupalGet('common-test/query-string'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsUnitTest.php index 15376a32d45bbdd28532bfd6bd9e480815894b6d..5ab3c0a163728d26cf480216e4c756b9fd5124f9 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsUnitTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\UnitTestBase; /** - * CSS Unit Tests. + * Tests CSS functions. */ class CascadingStylesheetsUnitTest extends UnitTestBase { public static function getInfo() { @@ -22,8 +22,9 @@ public static function getInfo() { } /** - * Tests basic CSS loading with and without optimization via drupal_load_stylesheet(). + * Tests CSS loading via drupal_load_stylesheet(). * + * This test loads CSS files with and without CSS optimization. * Known tests: * - Retain white-space in selectors. (http://drupal.org/node/472820) * - Proper URLs in imported files. (http://drupal.org/node/265719) diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php index b61987e7417b528b167f00abbba616d1928d40c4..87d97b6b72261cff982f9d4dfb6ed3ac1f23e881 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php @@ -48,7 +48,7 @@ function setUp() { } /** - * Test admin-defined formats in format_date(). + * Tests admin-defined formats in format_date(). */ function testAdminDefinedFormatDate() { // Create an admin user. diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/GotoTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/GotoTest.php index c00af03c0151b5e470f2eae73a038922c45c4db4..c353e69a91ae07fcb950d8b2c32c57122d0f15ec 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/GotoTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/GotoTest.php @@ -30,7 +30,7 @@ public static function getInfo() { } /** - * Test drupal_goto(). + * Tests drupal_goto(). */ function testDrupalGoto() { $this->drupalGet('common-test/drupal_goto/redirect'); @@ -56,7 +56,7 @@ function testDrupalGoto() { } /** - * Test hook_drupal_goto_alter(). + * Tests hook_drupal_goto_alter(). */ function testDrupalGotoAlter() { $this->drupalGet('common-test/drupal_goto/redirect_fail'); @@ -66,7 +66,7 @@ function testDrupalGotoAlter() { } /** - * Test drupal_get_destination(). + * Tests drupal_get_destination(). */ function testDrupalGetDestination() { $query = $this->randomName(10); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php index 005d3d32b5098cf8a6cbbe5cbef70acd5e9c347f..a4cabd669ae859c1cb4090ef468ac2f202c7fb3b 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/HttpRequestTest.php @@ -30,6 +30,9 @@ public static function getInfo() { ); } + /** + * Checks HTTP requests. + */ function testDrupalHTTPRequest() { global $is_https; @@ -73,6 +76,9 @@ function testDrupalHTTPRequest() { } } + /** + * Tests HTTP basic authorization. + */ function testDrupalHTTPRequestBasicAuth() { $username = $this->randomName(); $password = $this->randomName(); @@ -86,6 +92,9 @@ function testDrupalHTTPRequestBasicAuth() { $this->assertRaw($password, '$_SERVER["PHP_AUTH_PW"] is passed correctly.'); } + /** + * Tests HTTP redirect requests. + */ function testDrupalHTTPRequestRedirect() { $redirect_301 = drupal_http_request(url('system-test/redirect/301', array('absolute' => TRUE)), array('max_redirects' => 1)); $this->assertEqual($redirect_301->redirect_code, 301, 'drupal_http_request follows the 301 redirect.'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php index 21ea3de631fb2d5f30bde77e244f6621f9f36efe..c30147f1554f7ccf8df16adf883f910b180595f8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php @@ -22,7 +22,7 @@ class JavaScriptTest extends WebTestBase { public static $modules = array('language', 'simpletest', 'common_test', 'path'); /** - * Store configured value for JavaScript preprocessing. + * Stores configured value for JavaScript preprocessing. */ protected $preprocess_js = NULL; @@ -57,14 +57,14 @@ function tearDown() { } /** - * Test default JavaScript is empty. + * Tests that default JavaScript is empty. */ function testDefault() { $this->assertEqual(array(), drupal_add_js(), 'Default JavaScript is empty.'); } /** - * Test adding a JavaScript file. + * Tests adding a JavaScript file. */ function testAddFile() { $javascript = drupal_add_js('core/misc/collapse.js'); @@ -72,7 +72,7 @@ function testAddFile() { } /** - * Test adding settings. + * Tests adding settings. */ function testAddSetting() { // Add a file in order to test default settings. @@ -133,7 +133,7 @@ function testDeferAttribute() { } /** - * Test drupal_get_js() for JavaScript settings. + * Tests drupal_get_js() for JavaScript settings. */ function testHeaderSetting() { drupal_add_library('system', 'drupalSettings'); @@ -179,7 +179,7 @@ function testHeaderSetting() { } /** - * Test to see if resetting the JavaScript empties the cache. + * Tests to see if resetting the JavaScript empties the cache. */ function testReset() { drupal_add_library('system', 'drupal'); @@ -189,7 +189,7 @@ function testReset() { } /** - * Test adding inline scripts. + * Tests adding inline scripts. */ function testAddInline() { drupal_add_library('system', 'drupal'); @@ -201,7 +201,7 @@ function testAddInline() { } /** - * Test rendering an external JavaScript file. + * Tests rendering an external JavaScript file. */ function testRenderExternal() { drupal_add_library('system', 'drupal'); @@ -213,7 +213,7 @@ function testRenderExternal() { } /** - * Test drupal_get_js() with a footer scope. + * Tests drupal_get_js() with a footer scope. */ function testFooterHTML() { drupal_add_library('system', 'drupal'); @@ -224,7 +224,7 @@ function testFooterHTML() { } /** - * Test drupal_add_js() sets preproccess to false when cache is set to false. + * Tests drupal_add_js() sets preproccess to FALSE when cache is also FALSE. */ function testNoCache() { drupal_add_library('system', 'drupal'); @@ -233,7 +233,7 @@ function testNoCache() { } /** - * Test adding a JavaScript file with a different group. + * Tests adding a JavaScript file with a different group. */ function testDifferentGroup() { drupal_add_library('system', 'drupal'); @@ -242,7 +242,7 @@ function testDifferentGroup() { } /** - * Test adding a JavaScript file with a different weight. + * Tests adding a JavaScript file with a different weight. */ function testDifferentWeight() { $javascript = drupal_add_js('core/misc/collapse.js', array('weight' => 2)); @@ -250,7 +250,7 @@ function testDifferentWeight() { } /** - * Test adding JavaScript within conditional comments. + * Tests adding JavaScript within conditional comments. * * @see drupal_pre_render_conditional_comments() */ @@ -270,7 +270,7 @@ function testBrowserConditionalComments() { } /** - * Test JavaScript versioning. + * Tests JavaScript versioning. */ function testVersionQueryString() { drupal_add_library('system', 'drupal'); @@ -281,7 +281,7 @@ function testVersionQueryString() { } /** - * Test JavaScript grouping and aggregation. + * Tests JavaScript grouping and aggregation. */ function testAggregation() { $default_query_string = variable_get('css_js_query_string', '0'); @@ -369,7 +369,7 @@ function testAggregationOrder() { } /** - * Test JavaScript ordering. + * Tests JavaScript ordering. */ function testRenderOrder() { // Add a bunch of JavaScript in strange ordering. @@ -411,7 +411,7 @@ function testRenderOrder() { } /** - * Test rendering the JavaScript with a file's weight above jQuery's. + * Tests rendering the JavaScript with a file's weight above jQuery's. */ function testRenderDifferentWeight() { // JavaScript files are sorted first by group, then by the 'every_page' @@ -424,7 +424,7 @@ function testRenderDifferentWeight() { } /** - * Test altering a JavaScript's weight via hook_js_alter(). + * Tests altering a JavaScript's weight via hook_js_alter(). * * @see simpletest_js_alter() */ @@ -523,8 +523,7 @@ function testGetLibrary() { } /** - * Tests that the query string remains intact when adding JavaScript files - * that have query string parameters. + * Tests JavaScript files that have querystrings attached get added right. */ function testAddJsFileWithQueryString() { $this->drupalGet('common-test/query-string'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/ParseInfoFileUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/ParseInfoFileUnitTest.php index 1efd9e75705e1ed507208fd36b931a9aef1e4262..e4cb0f3a82d49eda5f4ea76a6400c61340e1f64f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/ParseInfoFileUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/ParseInfoFileUnitTest.php @@ -22,7 +22,7 @@ public static function getInfo() { } /** - * Parse an example .info file an verify the results. + * Parses an example .info file and verifies the results. */ function testParseInfoFile() { $info_values = drupal_parse_info_file(drupal_get_path('module', 'system') . '/tests/common_test_info.txt'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/RegionContentTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/RegionContentTest.php index a64dfc444f7687600c4cd5f6edc39febcc825930..e8b8201e03d36046e9912e65b6dcd2dbb947b252 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/RegionContentTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/RegionContentTest.php @@ -22,7 +22,7 @@ public static function getInfo() { } /** - * Test setting and retrieving content for theme regions. + * Tests setting and retrieving content for theme regions. */ function testRegions() { global $theme_key; diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php index 7786d28cdb288aa02a048225b280b2f762173a7c..adc35ba0bf783a0ec84af46c8d62af1a953b80cf 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/RenderTest.php @@ -30,7 +30,7 @@ public static function getInfo() { } /** - * Test sorting by weight. + * Tests sorting by weight. */ function testDrupalRenderSorting() { $first = $this->randomName(); @@ -81,7 +81,7 @@ function testDrupalRenderSorting() { } /** - * Test #attached functionality in children elements. + * Tests #attached functionality in children elements. */ function testDrupalRenderChildrenAttached() { // The cache system is turned off for POST requests. @@ -131,7 +131,7 @@ function testDrupalRenderChildrenAttached() { } /** - * Test passing arguments to the theme function. + * Tests passing arguments to the theme function. */ function testDrupalRenderThemeArguments() { $element = array( @@ -144,12 +144,12 @@ function testDrupalRenderThemeArguments() { '#foo' => $this->randomName(), '#bar' => $this->randomName(), ); - // Test that passing arguments to the theme function works. + // Tests that passing arguments to the theme function works. $this->assertEqual(drupal_render($element), $element['#foo'] . $element['#bar'], 'Passing arguments to theme functions works'); } /** - * Test rendering form elements without passing through form_builder(). + * Tests rendering form elements without passing through form_builder(). */ function testDrupalRenderFormElements() { // Define a series of form elements. @@ -268,7 +268,7 @@ function testDrupalRenderFormElements() { } /** - * Test rendering elements with invalid keys. + * Tests rendering elements with invalid keys. */ function testDrupalRenderInvalidKeys() { $error = array( @@ -284,6 +284,9 @@ function testDrupalRenderInvalidKeys() { $this->assertRaw($message, format_string('Found error message: !message.', array('!message' => $message))); } + /** + * Tests that elements are rendered properly. + */ protected function assertRenderedElement(array $element, $xpath, array $xpath_args = array()) { $original_element = $element; $this->drupalSetContent(drupal_render($element)); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/SimpleTestErrorCollectorTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/SimpleTestErrorCollectorTest.php index f37cb9753a99880959fc880bca02b05bd5f3f03e..c8a08baea5849c7ed27b7bf18ab8d93d7f2ecde4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/SimpleTestErrorCollectorTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/SimpleTestErrorCollectorTest.php @@ -40,7 +40,7 @@ public static function getInfo() { } /** - * Test that simpletest collects errors from the tested site. + * Tests that simpletest collects errors from the tested site. */ function testErrorCollect() { $this->collectedErrors = array(); @@ -91,7 +91,7 @@ protected function error($message = '', $group = 'Other', array $caller = NULL) } /** - * Assert that a collected error matches what we are expecting. + * Asserts that a collected error matches what we are expecting. */ function assertError($error, $group, $function, $file, $message = NULL) { $this->assertEqual($error['group'], $group, format_string("Group was %group", array('%group' => $group))); diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/SizeUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/SizeUnitTest.php index c804d617ee5118f7e2be9686322d4d4b692c5dfd..a8a2662672adf5148e61e7ffa984d2e8a883e9f7 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/SizeUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/SizeUnitTest.php @@ -48,7 +48,7 @@ function setUp() { } /** - * Check that format_size() returns the expected string. + * Checks that format_size() returns the expected string. */ function testCommonFormatSize() { foreach (array($this->exact_test_cases, $this->rounded_test_cases) as $test_cases) { @@ -63,7 +63,7 @@ function testCommonFormatSize() { } /** - * Check that parse_size() returns the proper byte sizes. + * Checks that parse_size() returns the proper byte sizes. */ function testCommonParseSize() { foreach ($this->exact_test_cases as $string => $size) { @@ -96,7 +96,7 @@ function testCommonParseSize() { } /** - * Cross-test parse_size() and format_size(). + * Cross-tests parse_size() and format_size(). */ function testCommonParseSizeFormatSize() { foreach ($this->exact_test_cases as $size) { diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/SystemListingTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/SystemListingTest.php index 5c57009b07c1bb688c58d74cd22d76cc10a316ed..523a20bee69109bc25c48c8253920b579eba7387 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/SystemListingTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/SystemListingTest.php @@ -22,7 +22,7 @@ public static function getInfo() { } /** - * Test that files in different directories take precedence as expected. + * Tests that files in different directories take precedence as expected. */ function testDirectoryPrecedence() { // Define the module files we will search for, and the directory precedence diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/UrlTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/UrlTest.php index d178709d84ea468da5ed161d13a473bee7591f63..473e352159105278c1a401a2a9b62fdce62a1bf7 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/UrlTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/UrlTest.php @@ -25,7 +25,7 @@ public static function getInfo() { } /** - * Confirm that invalid text given as $path is filtered. + * Confirms that invalid URLs are filtered. */ function testLXSS() { $text = $this->randomName(); @@ -58,7 +58,7 @@ private function hasClass($link, $class) { } /** - * Test drupal_get_query_parameters(). + * Tests drupal_get_query_parameters(). */ function testDrupalGetQueryParameters() { $original = array( @@ -94,7 +94,7 @@ function testDrupalGetQueryParameters() { } /** - * Test drupal_http_build_query(). + * Tests drupal_http_build_query(). */ function testDrupalHttpBuildQuery() { $this->assertEqual(drupal_http_build_query(array('a' => ' &#//+%20@۞')), 'a=%20%26%23//%2B%2520%40%DB%9E', 'Value was properly encoded.'); @@ -104,7 +104,7 @@ function testDrupalHttpBuildQuery() { } /** - * Test drupal_parse_url(). + * Tests drupal_parse_url(). */ function testDrupalParseUrl() { // Relative, absolute, and external URLs, without/with explicit script path, @@ -142,8 +142,10 @@ function testDrupalParseUrl() { } /** - * Test url() with/without query, with/without fragment, absolute on/off and - * assert all that works when clean URLs are on and off. + * Tests url() functionality. + * + * Tests url() with/without query, with/without fragment, absolute on/off and + * asserts all that works when clean URLs are on and off. */ function testUrl() { global $base_url, $script_path; @@ -184,7 +186,7 @@ function testUrl() { } /** - * Test external URL handling. + * Tests external URL handling. */ function testExternalUrls() { $test_url = 'http://drupal.org/'; diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/ValidUrlUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/ValidUrlUnitTest.php index bc9b6a908f4743288c0f94555dca682735947e44..6750d27e24e187c5ccaddd444cb9cdcec6e31d90 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/ValidUrlUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/ValidUrlUnitTest.php @@ -22,7 +22,7 @@ public static function getInfo() { } /** - * Test valid absolute URLs. + * Tests valid absolute URLs. */ function testValidAbsolute() { $url_schemes = array('http', 'https', 'ftp'); @@ -57,7 +57,7 @@ function testValidAbsolute() { } /** - * Test invalid absolute URLs. + * Tests invalid absolute URLs. */ function testInvalidAbsolute() { $url_schemes = array('http', 'https', 'ftp'); @@ -77,7 +77,7 @@ function testInvalidAbsolute() { } /** - * Test valid relative URLs. + * Tests valid relative URLs. */ function testValidRelative() { $valid_relative_urls = array( @@ -98,7 +98,7 @@ function testValidRelative() { } /** - * Test invalid relative URLs. + * Tests invalid relative URLs. */ function testInvalidRelative() { $invalid_relative_urls = array( diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/WriteRecordTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/WriteRecordTest.php index 8aee0efbefbadaf3845748b59d19a337ef04ec20..628dad9a8970118c77029ad5b8fa49bc3ea01baf 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/WriteRecordTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/WriteRecordTest.php @@ -31,7 +31,7 @@ public static function getInfo() { } /** - * Test the drupal_write_record() API function. + * Tests the drupal_write_record() API function. */ function testDrupalWriteRecord() { // Insert a record with no columns populated. diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php index 008491dbccfec1792fae1c2bd7bee316242fb1b1..85416653ec1cd69db9f9e506b10bcf81a86ed950 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php @@ -23,7 +23,7 @@ public static function getInfo() { } /** - * Check that invalid multi-byte sequences are rejected. + * Checks that invalid multi-byte sequences are rejected. */ function testInvalidMultiByte() { // Ignore PHP 5.3+ invalid multibyte sequence warning. @@ -41,7 +41,7 @@ function testInvalidMultiByte() { } /** - * Check that special characters are escaped. + * Checks that special characters are escaped. */ function testEscaping() { $text = check_plain("