diff --git a/core/modules/node/src/Tests/NodeCreationTest.php b/core/modules/node/src/Tests/NodeCreationTest.php index cb5d9c1..de66ef9 100644 --- a/core/modules/node/src/Tests/NodeCreationTest.php +++ b/core/modules/node/src/Tests/NodeCreationTest.php @@ -193,8 +193,8 @@ function testNodeAddWithoutContentTypes () { * Gets the watchdog IDs of the records with the rollback exception message. * * @return int[] - * Array containing the ID of the log records with the the rollback - * exception message. + * Array containing the IDs of the log records with the rollback exception + * message. */ protected static function getWatchdogIdsForTestExceptionRollback() { // PostgreSQL doesn't support bytea LIKE queries, so we need to unserialize @@ -213,8 +213,9 @@ protected static function getWatchdogIdsForTestExceptionRollback() { /** * Gets the log records with the explicit rollback failed exception message. * - * @return array - * The log records with the explicit rollback failed exception message. + * @return \Drupal\Core\Database\StatementInterface + * A prepared statement object (already executed), which contains the log + records with the explicit rollback failed exception message. */ protected static function getWatchdogIdsForFailedExplicitRollback() { return db_query("SELECT wid FROM {watchdog} WHERE message LIKE 'Explicit rollback failed%'")->fetchAll(); diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php index fa63780..48c754c 100644 --- a/core/modules/node/src/Tests/NodeTestBase.php +++ b/core/modules/node/src/Tests/NodeTestBase.php @@ -92,7 +92,7 @@ function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $la } /** - * Constructs an assert message to display which node access was done. + * Constructs an assert message to display which node access was tested. * * @param string $operation * The operation to check access for. @@ -103,8 +103,8 @@ function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $la * to check. If NULL, the untranslated (fallback) access is checked. * * @return string - * Assert message string which contains information in plain english about - * which node access permission test was performed. + * An assert message string which contains information in plain English about + * the node access permission test that was performed. */ function nodeAccessAssertMessage($operation, $result, $langcode = NULL) { return format_string(