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 dd3ef467f058828d88c6e8ffaaeca47f56d4f636..a196f856053d6344b4cbe7ec87e8cd2100aa6292 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Base test system for AJAX tests. + * Provides a base class for Ajax tests. */ abstract class AjaxTestBase extends WebTestBase { 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 0ea8abf0b6e59d41ec239bc7a5780c0eb4eaa2b9..9abc495e0a3679b506bf8c566efbe9d3e1aacb66 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/FormValuesTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/FormValuesTest.php @@ -27,7 +27,7 @@ function setUp() { } /** - * Submits forms with select and checkbox elements via AJAX. + * 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 204701f1222b0ed394e36015eb394fdfea0cde92..00e7f14f89df2564ea3d90a2015fa35fb6cedd1e 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php @@ -69,7 +69,7 @@ function testAJAXRenderError() { } /** - * Tests that new JavaScript and CSS files are returned on an AJAX request. + * Tests that new JavaScript and CSS files are returned on an Ajax request. */ function testLazyLoad() { $expected = array( @@ -103,7 +103,7 @@ function testLazyLoad() { $this->assertTrue(!isset($original_settings[$expected['css']]), format_string('Page originally lacks the %css file, as expected.', array('%css' => $expected['css']))); $this->assertTrue(!isset($original_settings[$expected['js']]), format_string('Page originally lacks the %js file, as expected.', array('%js' => $expected['js']))); - // Submit the AJAX request without triggering files getting added. + // Submit the Ajax request without triggering files getting added. $commands = $this->drupalPostAJAX(NULL, array('add_files' => FALSE), array('op' => t('Submit'))); $new_settings = $this->drupalGetSettings(); @@ -124,7 +124,7 @@ function testLazyLoad() { $this->assertFalse($found_settings_command, format_string('Page state still lacks the %css and %js files, as expected.', array('%css' => $expected['css'], '%js' => $expected['js']))); $this->assertFalse($found_markup_command, format_string('Page still lacks the %css and %js files, as expected.', array('%css' => $expected['css'], '%js' => $expected['js']))); - // Submit the AJAX request and trigger adding files. + // Submit the Ajax request and trigger adding files. $commands = $this->drupalPostAJAX(NULL, array('add_files' => TRUE), array('op' => t('Submit'))); $new_settings = $this->drupalGetSettings(); $new_css = $new_settings['ajaxPageState']['css']; @@ -134,12 +134,12 @@ function testLazyLoad() { $this->assertIdentical($new_settings[$expected['setting_name']], $expected['setting_value'], format_string('Page now has the %setting.', array('%setting' => $expected['setting_name']))); // Verify the expected CSS file was added, both to Drupal.settings, and as - // an AJAX command for inclusion into the HTML. + // an Ajax command for inclusion into the HTML. $this->assertEqual($new_css, $original_css + array($expected['css'] => 1), format_string('Page state now has the %css file.', array('%css' => $expected['css']))); $this->assertCommand($commands, array('data' => $expected_css_html), format_string('Page now has the %css file.', array('%css' => $expected['css']))); // Verify the expected JS file was added, both to Drupal.settings, and as - // an AJAX command for inclusion into the HTML. By testing for an exact HTML + // an Ajax command for inclusion into the HTML. By testing for an exact HTML // string containing the SCRIPT tag, we also ensure that unexpected // JavaScript code, such as a jQuery.extend() that would potentially clobber // rather than properly merge settings, didn't accidentally get added. 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 cf3adaac1c5e85fb75133fb7a2e04f77495d16d9..aab0858acb29aabd2d4367a3652d7c2655400312 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/MultiFormTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/MultiFormTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Ajax; /** - * Tests that Ajax-enabled forms work when multiple instances of the same form are on a page. + * Tests Ajax-enabled forms functionality with multiple instances of the form. */ class MultiFormTest extends AjaxTestBase { @@ -53,7 +53,7 @@ function setUp() { } /** - * Tests that pages with the 'page_node_form' included twice works correctly. + * Tests that pages with the 'page_node_form' included twice work 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/PageTest.php b/core/modules/system/lib/Drupal/system/Tests/Batch/PageTest.php index 69dee9c4e36673b90ede94e0fe45faa5f3a32f35..db1d6711eb7087412c8fa45f12fd67749d4a568c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Batch/PageTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Batch/PageTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for the Batch API Progress page. + * Tests the Batch API Progress page. */ class PageTest extends WebTestBase { 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 2f56ecd2b2d7b7f31ea66cc8038e7ce252e248e7..9bd0c61912b3c096c6fc134e54eb775f4ea9d5ac 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for the Batch API. + * Tests the Batch API. */ class ProcessingTest extends WebTestBase { @@ -166,6 +166,7 @@ function testBatchLargePercentage() { * Array of raw strings to look for . * @param $message * Message to display. + * * @return * TRUE on pass, FALSE on fail. */ diff --git a/core/modules/system/lib/Drupal/system/Tests/Bundle/BundleTest.php b/core/modules/system/lib/Drupal/system/Tests/Bundle/BundleTest.php index 9e662c969e7bab504eb569201b6bd0a4c9aad202..3fa0d1d94a3a23637c0b843b420c3e8c4eb68229 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Bundle/BundleTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Bundle/BundleTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Test bundle registration to the DIC. + * Tests bundle registration to the DIC. */ class BundleTest extends WebTestBase { @@ -30,7 +30,7 @@ public static function getInfo() { } /** - * Test that services provided by module bundles get registered to the DIC. + * Tests that services provided by module bundles get registered to the DIC. */ function testBundleRegistration() { $this->assertTrue(drupal_container()->getDefinition('file.usage')->getClass() == 'Drupal\\bundle_test\\TestFileUsage', 'Class has been changed'); 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 6f9c2699d785ab939bcdfb556c910834c3cc0be8..25ab106be615f729c570fee5dd694479a7c215e3 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php @@ -41,7 +41,7 @@ protected function checkCacheExists($cid, $var, $bin = NULL) { } /** - * Assert or a cache entry exists. + * Asserts that a cache entry exists. * * @param $message * Message to display. @@ -67,7 +67,7 @@ protected function assertCacheExists($message, $var = NULL, $cid = NULL, $bin = } /** - * Assert or a cache entry has been removed. + * Asserts that a cache entry has been removed. * * @param $message * Message to display. diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/DatabaseBackendUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Cache/DatabaseBackendUnitTest.php index 585a3ff6ffa7742cb8c6aa646e25a09a0ae13127..f301257b0574084c57b46c635f93c4d0c1eef1f8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/DatabaseBackendUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/DatabaseBackendUnitTest.php @@ -22,14 +22,26 @@ public static function getInfo() { ); } + /** + * Creates a new instance of DatabaseBackend. + * + * @return + * A new DatabaseBackend object. + */ protected function createCacheBackend($bin) { return new DatabaseBackend($bin); } + /** + * Installs system schema. + */ public function setUpCacheBackend() { drupal_install_schema('system'); } + /** + * Uninstalls system schema. + */ public function tearDownCacheBackend() { drupal_uninstall_schema('system'); } 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 c54943f5626cbffca43aa20ae5e8cf941baf42a6..95805d7205eefe3dc3822f25eb8150f9ebb59139 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php @@ -13,8 +13,10 @@ use stdClass; /** + * Tests any cache backend. + * * Full generic unit test suite for any cache backend. In order to use it for a - * cache backend implementation extend this class and override the + * cache backend implementation, extend this class and override the * createBackendInstace() method to return an object. * * @see DatabaseBackendUnitTestCase @@ -44,7 +46,7 @@ abstract class GenericCacheBackendUnitTestBase extends UnitTestBase { protected $defaultValue; /** - * Get testing bin. + * Gets the testing bin. * * Override this method if you want to work on a different bin than the * default one. @@ -60,7 +62,7 @@ protected function getTestBin() { } /** - * Create a cache backend to test. + * Creates a cache backend to test. * * Override this method to test a CacheBackend. * @@ -73,21 +75,22 @@ protected function getTestBin() { protected abstract function createCacheBackend($bin); /** - * Allow specific implementation to change the environement before test run. + * Allows specific implementation to change the environment before a test run. */ public function setUpCacheBackend() { } /** - * Allow specific implementation to alter the environement after test run but - * before the real tear down, which will changes things such as the database - * prefix. + * Allows alteration of environment after a test run but before tear down. + * + * Used before the real tear down because the tear down will change things + * such as the database prefix. */ public function tearDownCacheBackend() { } /** - * Get backend to test, this will get a shared instance set in the object. + * Gets a backend to test; this will get a shared instance set in the object. * * @return Drupal\Core\Cache\CacheBackendInterface * Cache backend to test. @@ -335,7 +338,7 @@ public function testDeleteMultiple() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::flush(). + * Tests Drupal\Core\Cache\CacheBackendInterface::flush(). */ public function testFlush() { $backend = $this->getCacheBackend(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/MemoryBackendUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Cache/MemoryBackendUnitTest.php index 499ddaf3a5edd298cd2f4b2ade25c2bcdf7723ea..d3a29e36fbd09f4ca3e1756e9553947739dc5bfc 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/MemoryBackendUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/MemoryBackendUnitTest.php @@ -22,6 +22,12 @@ public static function getInfo() { ); } + /** + * Creates a new instance of MemoryBackend. + * + * @return + * A new MemoryBackend object. + */ protected function createCacheBackend($bin) { return new MemoryBackend($bin); } 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 87e1731a625a7e2564e7646aabb4006cb5151bc4..e23525ed89e463ea40bd89ddc001d0f849e2540c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/AddFeedTest.php @@ -91,7 +91,9 @@ function urlToRSSLinkPattern($url, $title = '') { } /** - * Check that special characters are correctly escaped. Test for issue #1211668. + * Checks that special characters are correctly escaped. + * + * @see http://drupal.org/node/1211668 */ function testFeedIconEscaping() { $variables = array(); 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 db0303c26f15fd79503a4ed98391cafac09449a6..9009bbb934c384cdcf0d707e573b708aac19981d 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php @@ -82,7 +82,7 @@ function testAddExternal() { } /** - * Makes sure that reseting the CSS empties the cache. + * Makes sure that resetting the CSS empties the cache. */ function testReset() { drupal_static_reset('drupal_add_css'); 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 87d97b6b72261cff982f9d4dfb6ed3ac1f23e881..d3cd9e63209645606fab680b06f7a1e0904d82f5 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/FormatDateTest.php @@ -74,7 +74,7 @@ function testAdminDefinedFormatDate() { } /** - * Tests for the format_date() function. + * Tests the format_date() function. */ function testFormatDate() { global $user; diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/HtmlIdentifierUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/HtmlIdentifierUnitTest.php index d0daf384450bf22df93292ba95352c3be85a9e47..df4046cd7144bbdcb17dd2fa4b890411284294ee 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/HtmlIdentifierUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/HtmlIdentifierUnitTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\UnitTestBase; /** - * Test for cleaning HTML identifiers. + * Tests cleaning HTML identifiers. */ class HtmlIdentifierUnitTest extends UnitTestBase { public static function getInfo() { diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/SchemaTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/SchemaTest.php index c33d59ad875e0bc18a927401ca914f2a80732e3d..7c328b438bf5f7d8ae7749164931cabc25fbe822 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/SchemaTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/SchemaTest.php @@ -13,9 +13,10 @@ use Exception; /** - * Unit tests for the Schema API. + * Tests the Schema API. */ class SchemaTest extends WebTestBase { + /** * A global counter for table and field creation. */ @@ -30,7 +31,7 @@ public static function getInfo() { } /** - * + * Tests database interactions. */ function testSchema() { // Try creating a table. @@ -144,6 +145,15 @@ function testSchema() { $this->assertTrue(db_table_exists('test_timestamp'), 'Table with database specific datatype was created.'); } + /** + * Tests inserting data into an existing table. + * + * @param $table + * The database table to insert data into. + * + * @return + * TRUE if the insert succeeded, FALSE otherwise. + */ function tryInsert($table = 'test_table') { try { db_insert($table) @@ -209,11 +219,12 @@ function testUnsignedColumns() { * Tries to insert a negative value into columns defined as unsigned. * * @param $table_name - * The table to insert + * The table to insert. * @param $column_name - * The column to insert + * The column to insert. + * * @return - * TRUE if the insert succeeded, FALSE otherwise + * TRUE if the insert succeeded, FALSE otherwise. */ function tryUnsignedInsert($table_name, $column_name) { try { @@ -228,7 +239,7 @@ function tryUnsignedInsert($table_name, $column_name) { } /** - * Test adding columns to an existing table. + * Tests adding columns to an existing table. */ function testSchemaAddField() { // Test varchar types. @@ -300,7 +311,7 @@ function testSchemaAddField() { } /** - * Assert that a given field can be added and removed from a table. + * Asserts that a given field can be added and removed from a table. * * The addition test covers both defining a field of a given specification * when initially creating at table and extending an existing table. @@ -357,7 +368,7 @@ protected function assertFieldAdditionRemoval($field_spec) { } /** - * Assert that a newly added field has the correct characteristics. + * Asserts that a newly added field has the correct characteristics. */ protected function assertFieldCharacteristics($table_name, $field_name, $field_spec) { // Check that the initial value has been registered. 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 c8a08baea5849c7ed27b7bf18ab8d93d7f2ecde4..16c62fcb0ae3452be6232a140ccd2556cac50efd 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/SimpleTestErrorCollectorTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/SimpleTestErrorCollectorTest.php @@ -61,7 +61,7 @@ function testErrorCollect() { } /** - * Error handler that collects errors in an array. + * Stores errors into an array. * * This test class is trying to verify that simpletest correctly sees errors * and warnings. However, it can't generate errors and warnings that diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/TableSortExtenderUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/TableSortExtenderUnitTest.php index 9a39cfc9318186fef1e360ee01e6b10074368bff..c7cc2a9b8e60f35bfce2c5c34e86e14b941fcf31 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/TableSortExtenderUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/TableSortExtenderUnitTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\UnitTestBase; /** - * Test unicode handling features implemented in unicode.inc. + * Tests unicode handling features implemented in unicode.inc. */ class TableSortExtenderUnitTest extends UnitTestBase { @@ -44,7 +44,7 @@ function tearDown() { } /** - * Test tablesort_init(). + * Tests tablesort_init(). */ function testTableSortInit() { 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 473e352159105278c1a401a2a9b62fdce62a1bf7..39ed2b4d617be355eff3399316c2251902040deb 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/UrlTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/UrlTest.php @@ -53,6 +53,17 @@ function testLCustomClass() { $this->assertTrue($this->hasClass($link, 'active'), format_string('Class @class is present on link to the current page', array('@class' => 'active'))); } + /** + * Checks for class existence in link. + * + * @param $link + * URL to search. + * @param $class + * Element class to search for. + * + * @return bool + * TRUE if the class is found, FALSE otherwise. + */ private function hasClass($link, $class) { return preg_match('|class="([^\"\s]+\s+)*' . $class . '|', $link); } diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/DeleteTruncateTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/DeleteTruncateTest.php index e31ac2c1e8fe64c7d7d2e63fafa8b7a83a2701fc..3d72da19b6d84cf2aca41b3df85f53d1b1159ca7 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/DeleteTruncateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/DeleteTruncateTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Database; /** - * Delete/Truncate tests. + * Tests delete and truncate queries. * * The DELETE tests are not as extensive, as all of the interesting code for * DELETE queries is in the conditional which is identical to the UPDATE and diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/InsertLobTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/InsertLobTest.php index 36fd72b68f69c6e8de8e17bd70a82504290c552f..63ffd294645e7509d38d45501ba9d38f21a8858e 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/InsertLobTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/InsertLobTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Database; /** - * Insert tests using LOB fields, which are weird on some databases. + * Tests inserts using LOB fields, which are weird on some databases. */ class InsertLobTest extends DatabaseTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/InsertTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/InsertTest.php index ffaeee0fbb351c11f03273e3c525fc5f3cdeace3..76afcf81f576d2caa086d4ec65392756879a6b99 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/InsertTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/InsertTest.php @@ -128,7 +128,7 @@ function testInsertFieldOnlyDefinintion() { } /** - * Test that inserts return the proper auto-increment ID. + * Tests that inserts return the proper auto-increment ID. */ function testInsertLastInsertID() { $id = db_insert('test') diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php index c9e56371587e0d27a5bb9d7bf85e3098c8c7d395..d5d690964a665f58ca05a6a2659f158dbaac5897 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php @@ -98,7 +98,7 @@ function testMergeUpdateExcept() { } /** - * Confirms that we can merge-update a record successfully, with alternate replacement. + * Confirms that we can merge-update a record, with alternate replacement. */ function testMergeUpdateExplicit() { $num_records_before = db_query('SELECT COUNT(*) FROM {test_people}')->fetchField(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/SelectComplexTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/SelectComplexTest.php index 6476f1e3785c86a9c243f39a08df65e014b2c69e..643b036689670593f6dc76b9d6071119c2cee923 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/SelectComplexTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/SelectComplexTest.php @@ -204,6 +204,9 @@ function testCountQuery() { $this->assertEqual($record->$age_field, 27, 'Correct data retrieved.'); } + /** + * Tests having queries. + */ function testHavingCountQuery() { $query = db_select('test') ->extend('Drupal\Core\Database\Query\PagerSelectExtender') diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/SelectSubqueryTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/SelectSubqueryTest.php index d36c9621e5533d9ad16471b85c55de808955f7f2..544c7b1545d14a69343b95c400df88b1ddcb14c8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/SelectSubqueryTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/SelectSubqueryTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Database; /** - * Test case for subselects in a dynamic SELECT query. + * Tests for subselects in a dynamic SELECT query. */ class SelectSubqueryTest extends DatabaseTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTableSortDefaultTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTableSortDefaultTest.php index a84894710bf4f2da75ca1b460af1961279d59f86..c740292586e4ec68d14e80484849bcb8b856e60f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTableSortDefaultTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTableSortDefaultTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Database; /** - * Tests the tablesort query extender + * Tests the tablesort query extender. */ class SelectTableSortDefaultTest extends DatabaseTestBase { @@ -77,7 +77,7 @@ function testTableSortQueryFirst() { } /** - * Confirms that no error is thrown if a sort is not set in a default tableselect. + * Confirms that no error is thrown if no sort is set in a tableselect. */ function testTableSortDefaultSort() { $this->drupalGet('database_test/tablesort_default_sort'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php index 802aef39e190d332f068bb5cc097c31e8a893e1c..85787b8fc81bf2c4495132c75c5ae0252c3665d5 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php @@ -368,7 +368,7 @@ function testRandomOrder() { } /** - * Tests that aliases are renamed when duplicates. + * Tests that aliases are renamed when they are duplicates. */ function testSelectDuplicateAlias() { $query = db_select('test', 't'); diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/UpdateTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/UpdateTest.php index 1558a92b1c7ab89fc307e8086b8c0817f18e4f9c..c5acd786c9cd05fc9994fff2d969abbf0115c056 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/UpdateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/UpdateTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Database; /** - * Updates builder tests. + * Tests the update query builder. */ class UpdateTest extends DatabaseTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php b/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php index 3d0188d3ef3443fed81350a8b880aae22f2cf864..0c7ee721eaf0a876fd32fb461d0c4c01fb7bf217 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for the theme interface functionality. + * Tests the theme interface functionality. */ class ThemeTest extends WebTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/RegistryTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/RegistryTest.php index 3d47b89b357fb102d846d0d853b88c649fc17fc7..7ea187f572dfbc1a2b70c72b97d50aaebd32a663 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/RegistryTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/RegistryTest.php @@ -11,7 +11,7 @@ use Drupal\Core\Utility\ThemeRegistry; /** - * Tests for the ThemeRegistry class. + * Tests the ThemeRegistry class. */ class RegistryTest extends WebTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Update/DependencyHookInvocationTest.php b/core/modules/system/lib/Drupal/system/Tests/Update/DependencyHookInvocationTest.php index 7b03fde9079a535e0605cc9a6700e814a555ccc4..ec8b4680698ce95a1f0c4c401df3634fc65a1e34 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Update/DependencyHookInvocationTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Update/DependencyHookInvocationTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for the invocation of hook_update_dependencies(). + * Tests the invocation of hook_update_dependencies(). */ class DependencyHookInvocationTest extends WebTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Update/DependencyOrderingTest.php b/core/modules/system/lib/Drupal/system/Tests/Update/DependencyOrderingTest.php index 6bd15345251a8eaf5fbd9987869dc2ebe117cdf0..f1d232f394ccf9e2542f2021865ab5c67e47ee32 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Update/DependencyOrderingTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Update/DependencyOrderingTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for the update dependency ordering system. + * Tests the update dependency ordering system. */ class DependencyOrderingTest extends WebTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Update/UpdateScriptTest.php b/core/modules/system/lib/Drupal/system/Tests/Update/UpdateScriptTest.php index f3275a711d66dae5996e97c202e6e667a2544f63..e2201df2db4925eb92da3990b314dc3032bac1e0 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Update/UpdateScriptTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Update/UpdateScriptTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests for the update system functionality. + * Tests the update system functionality. */ class UpdateScriptTest extends WebTestBase {