Commit fdc1c3da authored by alexpott's avatar alexpott
Browse files

Issue #2383863 by rpayanm, mgifford, maximpodorov, Valentine94: Spellchecking Drupal - Comments

parent f0c731f2
......@@ -11,7 +11,7 @@
use Drupal\views\ResultRow;
/**
* Filters htmls tags from item.
* Filters HTML tags from item.
*
* @ingroup views_field_handlers
*
......
......@@ -76,7 +76,7 @@ protected function setUp() {
* plugins that extend AggregatorPluginSettingsBase.
*/
public function testSettingsForm() {
// Emulate a form state of a sumbitted form.
// Emulate a form state of a submitted form.
$form_state = (new FormState())->setValues([
'dummy_length' => '',
'aggregator_allowed_html_tags' => '',
......
......@@ -11,7 +11,7 @@
use Drupal\block\Entity\Block;
/**
* Tests if a block can be configure to be only visibile on a particular
* Tests if a block can be configured to be only visible on a particular
* language.
*
* @group block
......
......@@ -60,7 +60,7 @@ public function testImport() {
}
/**
* Tests determing changes in hook_block_presave().
* Tests determining changes in hook_block_presave().
*
* Verifies the static block load cache is cleared upon save.
*/
......@@ -78,8 +78,8 @@ public function testDeterminingChanges() {
$block->save();
// The hook implementations block_content_test_block_content_presave() and
// block_content_test_block_content_update() determine changes and change the
// title as well as programatically set the 'changed' timestamp.
// block_content_test_block_content_update() determine changes and change
// the title as well as programmatically set the 'changed' timestamp.
$this->assertEqual($block->label(), 'updated_presave_update', 'Changes have been determined.');
$this->assertEqual($block->getChangedTime(), 979534800, 'Saving a custom block uses "changed" timestamp set in presave hook.');
......
......@@ -57,7 +57,7 @@ public function testBlockContentTypeCreation() {
]));
// Now create an initial block-type.
$this->createBlockContentType('basic', TRUE);
// Create a block type programmaticaly.
// Create a block type programmatically.
$type = $this->createBlockContentType('other');
$block_type = BlockContentType::load('other');
......
......@@ -212,7 +212,7 @@ function commentContactInfoAvailable() {
* Comment to perform operation on.
* @param string $operation
* Operation to perform.
* @param bool $aproval
* @param bool $approval
* Operation is found on approval page.
*/
function performCommentOperation($comment, $operation, $approval = FALSE) {
......
......@@ -337,7 +337,7 @@ function commentContactInfoAvailable() {
* Comment to perform operation on.
* @param string $operation
* Operation to perform.
* @param bool $aproval
* @param bool $approval
* Operation is found on approval page.
*/
function performCommentOperation(CommentInterface $comment, $operation, $approval = FALSE) {
......
......@@ -127,7 +127,7 @@ function testCommentThreading() {
/**
* Asserts that the link to the specified parent comment is present.
*
* @parm int $cid
* @param int $cid
* The comment ID to check.
* @param int $pid
* The expected parent comment ID.
......@@ -154,7 +154,7 @@ protected function assertParentLink($cid, $pid) {
/**
* Asserts that the specified comment does not have a link to a parent.
*
* @parm int $cid
* @param int $cid
* The comment ID to check.
*/
protected function assertNoParentLink($cid) {
......
......@@ -2,7 +2,7 @@
/**
* @file
* Dummy module emptying comment titles to test for approriate and accessible
* Dummy module emptying comment titles to test for appropriate and accessible
* markup in edge case scenarios where comments have empty titles.
*/
......
......@@ -173,7 +173,7 @@ function testCRUD() {
$this->fail($e->getMessage());
}
// Test with an ID exeeding the maximum allowed length.
// Test with an ID exceeding the maximum allowed length.
$id_length_config_test = entity_create('config_test', array(
'id' => $this->randomMachineName(static::MAX_ID_LENGTH + 1),
));
......
......@@ -243,7 +243,7 @@ public function testExportImportCollections() {
$this->assertEqual($data, array('foo' => 'baz'), 'The config_test.another_update in collection.test2 exists in the snapshot storage.');
$this->assertFalse($test2_snapshot->read('config_test.another_create'), 'The config_test.another_create in collection.test2 does not exist in the snapshot storage.');
// Create the tar contains the expected contect for the collections.
// Create the tar that contains the expected content for the collections.
$tar = new ArchiveTar($filename, 'gz');
$content_list = $tar->listContent();
// Convert the list of files into something easy to search.
......
......@@ -310,7 +310,7 @@ function testImportDiff() {
}
/**
* Tests that mutliple validation errors are listed on the page.
* Tests that multiple validation errors are listed on the page.
*/
public function testImportValidation() {
// Set state value so that
......
......@@ -186,7 +186,7 @@ public function testCollectionInstallationCollectionConfigEntity() {
$this->assertEqual($collections, $active_storage->getAllCollectionNames());
$collection_storage = $active_storage->createCollection('entity');
// The config_test.dynamic.dotted.default configuraton object saved in the
// The config_test.dynamic.dotted.default configuration object saved in the
// active store should be a configuration entity complete with UUID. Because
// the entity collection does not support configuration entities the
// configuration object stored there with the same name should only contain
......
......@@ -39,7 +39,7 @@ function testSiteNameTranslation() {
$adminUser = $this->drupalCreateUser(array('administer site configuration', 'administer languages'));
$this->drupalLogin($adminUser);
// Add a custom lanugage.
// Add a custom language.
$langcode = 'xx';
$name = $this->randomMachineName(16);
$edit = array(
......
......@@ -111,7 +111,7 @@ function testConfOverride() {
$this->assertFalse(isset($data['baz']));
$this->assertIdentical($data['404'], $expected_new_data['404']);
// Verifiy the overrides are still working.
// Verify that the overrides are still working.
$config = \Drupal::config('config_test.system');
$this->assertIdentical($config->get('foo'), $overrides['config_test.system']['foo']);
$this->assertIdentical($config->get('baz'), $overrides['config_test.system']['baz']);
......
......@@ -114,7 +114,7 @@ public function isPersonal();
* Returns the user this message is being sent to.
*
* @return \Drupal\user\UserInterface
* The user entity of the recipent, NULL if this is not a personal message.
* The user entity of the recipient, NULL if this is not a personal message.
*/
public function getPersonalRecipient();
......
......@@ -273,7 +273,7 @@ function content_translation_form_alter(array &$form, FormStateInterface $form_s
/**
* Implements hook_language_fallback_candidates_OPERATION_alter().
*
* Performs language fallback for unaccessible translations.
* Performs language fallback for inaccessible translations.
*/
function content_translation_language_fallback_candidates_entity_view_alter(&$candidates, $context) {
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
......
......@@ -205,11 +205,11 @@ function testAccountLanguageSettingsUI() {
* Asserts that translatability has the expected value for the given bundle.
*
* @param string $entity_type
* The entity type for which to check translatibility.
* The entity type for which to check translatability.
* @param string $bundle
* The bundle for which to check translatibility.
* The bundle for which to check translatability.
* @param bool $enabled
* TRUE if translatibility should be enabled, FALSE otherwise.
* TRUE if translatability should be enabled, FALSE otherwise.
* @param array $edit
* An array of values to submit to the content translation settings page.
*
......
......@@ -25,14 +25,14 @@ class ContentTranslationSyncUnitTest extends KernelTestBase {
protected $synchronizer;
/**
* The colums to be synchronized.
* The columns to be synchronized.
*
* @var array
*/
protected $synchronized;
/**
* All the field colums.
* All the field columns.
*
* @var array
*/
......
......@@ -83,7 +83,7 @@ function testWorkflows() {
$expected_status = array('edit' => 200, 'overview' => 200, 'add_translation' => 200, 'edit_translation' => 200);
$this->assertWorkflows($this->administrator, $expected_status);
// Check that translation permissions governate the associated operations.
// Check that translation permissions allow the associated operations.
$ops = array('create' => t('Add'), 'update' => t('Edit'), 'delete' => t('Delete'));
$translations_url = $this->entity->urlInfo('drupal:content-translation-overview');
foreach ($ops as $current_op => $item) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment