Commit ac3b7662 authored by xjm's avatar xjm
Browse files

Issue #2383871 by mgifford, rpayanm, a_thakur, maximpodorov, AohRveTPV,...

Issue #2383871 by mgifford, rpayanm, a_thakur, maximpodorov, AohRveTPV, jhodgdon: Spellchecking Drupal - PHP
parent 088f8b35
......@@ -64,7 +64,7 @@ public function testBlockContentTypeCreation() {
$this->assertTrue($block_type, 'The new block type has been created.');
$this->drupalGet('block/add/' . $type->id());
$this->assertResponse(200, 'The new block type can be accessed at bloack/add.');
$this->assertResponse(200, 'The new block type can be accessed at block/add.');
// Create a block type via the user interface.
$edit = array(
......
......@@ -26,7 +26,7 @@ class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
function getButtons() {
return array(
'Llama' => array(
'label' => t('Insert Lllama'),
'label' => t('Insert Llama'),
),
);
}
......
......@@ -72,7 +72,7 @@ public function testInstallOtherModuleFirst() {
/**
* Tests enabling the provider of the config entity type first.
*/
public function testInstallConfigEnityModuleFirst() {
public function testInstallConfigEntityModuleFirst() {
$this->installModule('config_test');
$this->assertFalse(entity_load('config_test', 'other_module_test', TRUE), 'Default configuration provided by config_other_module_config_test does not exist.');
......
......@@ -227,7 +227,7 @@ function testSchemaMapping() {
$definition = \Drupal::service('config.typed')->getDefinition('config_schema_test.someschema.somemodule.section_one.subsection');
// This should be the schema of config_schema_test.someschema.somemodule.*.*.
$expected = array();
$expected['label'] = 'Schema multiple filesytem marker test';
$expected['label'] = 'Schema multiple filesystem marker test';
$expected['class'] = '\Drupal\Core\Config\Schema\Mapping';
$expected['mapping']['langcode']['type'] = 'string';
$expected['mapping']['langcode']['label'] = 'Language code';
......
......@@ -65,7 +65,7 @@ config_schema_test.someschema.with_parents.key_3:
config_schema_test.someschema.somemodule.*.*:
type: config_object
label: 'Schema multiple filesytem marker test'
label: 'Schema multiple filesystem marker test'
mapping:
testid:
type: string
......
......@@ -392,7 +392,7 @@ function testDefaultValue() {
// Check that invalid default values are rejected.
$edit = array($element_name => '-1');
$this->drupalPostForm($admin_path, $edit, t('Save settings'));
$this->assertText("$field_name does not accept the value -1", 'Form vaildation failed.');
$this->assertText("$field_name does not accept the value -1", 'Form validation failed.');
// Check that the default value is saved.
$edit = array($element_name => '1');
......
......@@ -188,7 +188,7 @@ public function testBasicFieldDenormalization() {
/**
* Verifies that the denormalized entity is correct in the PATCH context.
*/
public function testPatchDenormailzation() {
public function testPatchDenormalization() {
$data = array(
'_links' => array(
'type' => array(
......
......@@ -267,7 +267,7 @@ function testUILanguageNegotiation() {
'expect' => $language_string,
'expected_method_id' => LanguageNegotiationUser::METHOD_ID,
'http_header' => array(),
'message' => 'USER > DEFAULT: defined prefereed user language setting, the UI language is based on user setting',
'message' => 'USER > DEFAULT: defined preferred user language setting, the UI language is based on user setting',
);
$this->runTest($test);
......@@ -309,7 +309,7 @@ function testUILanguageNegotiation() {
'expect' => $language_string,
'expected_method_id' => LanguageNegotiationUserAdmin::METHOD_ID,
'http_header' => array(),
'message' => 'USER ADMIN > DEFAULT: defined prefereed user admin language setting, the UI language is based on user setting',
'message' => 'USER ADMIN > DEFAULT: defined preferred user admin language setting, the UI language is based on user setting',
);
$this->runTest($test);
......
......@@ -157,7 +157,7 @@ function testDomainNameNegotiationPort() {
$expected = $index_php ? 'http://example.fr:90/index.php' : 'http://example.fr:90' . rtrim(base_path(), '/') . '/';
$this->assertEqual($url, $expected, 'A given port is not overriden.');
$this->assertEqual($url, $expected, 'A given port is not overridden.');
}
......
......@@ -72,7 +72,7 @@ public function testInterface() {
$this->assertText(t('Translation update status'), 'Status message');
$this->assertRaw(t('Updates available for: @languages. See the <a href="@updates">Available translation updates</a> page for more information.', array('@languages' => t('German'), '@updates' => \Drupal::url('locale.translate_status'))), 'Updates available message');
$this->drupalGet('admin/reports/translations');
$this->assertText(t('Updates for: @modules', array('@modules' => 'Locale test translate')), 'Translations avaiable');
$this->assertText(t('Updates for: @modules', array('@modules' => 'Locale test translate')), 'Translations available');
// Set locale_test_translate module to have a dev release and no
// translation found.
......
......@@ -37,7 +37,7 @@ public function fields() {
'format' => $this->t('Format ID.'),
'name' => $this->t('The name of the filter format.'),
'roles' => $this->t('The user roles that can use the format.'),
'cache' => $this->t('Flag to indicate whether format is cachable. (1 = cachable, 0 = not cachable).'),
'cache' => $this->t('Flag to indicate whether format is cacheable. (1 = cacheable, 0 = not cacheable).'),
);
}
......
......@@ -143,8 +143,8 @@ public function displaySubmitted() {
/**
* {@inheritdoc}
*/
public function setDisplaySubmitted($display_submtited) {
$this->display_submitted = $display_submtited;
public function setDisplaySubmitted($display_submitted) {
$this->display_submitted = $display_submitted;
}
/**
......
......@@ -52,7 +52,7 @@ public function displaySubmitted();
* @param bool $display_submitted
* TRUE if the submitted by information should be shown.
*/
public function setDisplaySubmitted($display_submtited);
public function setDisplaySubmitted($display_submitted);
/**
* Gets the preview mode.
......
......@@ -35,7 +35,7 @@ function testNodeTitleXSS() {
$this->drupalGet('node/' . $node->id());
// assertTitle() decodes HTML-entities inside the <title> element.
$this->assertTitle($title . ' | Drupal', 'Title is diplayed when viewing a node.');
$this->assertTitle($title . ' | Drupal', 'Title is displayed when viewing a node.');
$this->assertNoRaw($xss, 'Harmful tags are escaped when viewing a node.');
$this->drupalGet('node/' . $node->id() . '/edit');
......
......@@ -143,7 +143,7 @@ protected function init(FormStateInterface $form_state, EntityInterface $entity,
// Fetch the display used by the form. It is the display for the 'default'
// form mode, with only the current field visible.
$display = EntityFormDisplay::collectRenderDisplay($entity, 'default');
foreach ($display->getComponents() as $name => $optipns) {
foreach ($display->getComponents() as $name => $options) {
if ($name != $field_name) {
$display->removeComponent($name);
}
......
......@@ -44,7 +44,7 @@ protected function setUp() {
/**
* Verify the keywords are captured and conditions respected.
*/
function testSearchKeyswordsConditions() {
function testSearchKeywordsConditions() {
// No keys, not conditions - no results.
$this->drupalGet('search/dummy_path');
$this->assertNoText('Dummy search snippet to display');
......
......@@ -156,7 +156,7 @@ function simpletest_schema() {
),
);
$schema['simpletest_test_id'] = array(
'description' => 'Stores simpletest test IDs, used to auto-incrament the test ID so that a fresh test ID is used.',
'description' => 'Stores simpletest test IDs, used to auto-increment the test ID so that a fresh test ID is used.',
'fields' => array(
'test_id' => array(
'type' => 'serial',
......
......@@ -645,13 +645,13 @@ protected function assertUniqueTextHelper($text, $message = '', $group = 'Other'
if (!$message) {
$message = '"' . $text . '"' . ($be_unique ? ' found only once' : ' found more than once');
}
$first_occurance = strpos($this->getTextContent(), $text);
if ($first_occurance === FALSE) {
$first_occurrence = strpos($this->getTextContent(), $text);
if ($first_occurrence === FALSE) {
return $this->assert(FALSE, $message, $group);
}
$offset = $first_occurance + strlen($text);
$second_occurance = strpos($this->getTextContent(), $text, $offset);
return $this->assert($be_unique == ($second_occurance === FALSE), $message, $group);
$offset = $first_occurrence + strlen($text);
$second_occurrence = strpos($this->getTextContent(), $text, $offset);
return $this->assert($be_unique == ($second_occurrence === FALSE), $message, $group);
}
/**
......
......@@ -1636,7 +1636,7 @@ public function copyConfig(StorageInterface $source_storage, StorageInterface $t
}
/**
* Configuration accessor for tests. Returns non-overriden configuration.
* Configuration accessor for tests. Returns non-overridden configuration.
*
* @param $name
* Configuration name.
......
......@@ -61,11 +61,11 @@ class PerformanceForm extends ConfigFormBase {
* @param \Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer
* The JavaScript asset collection optimizer service.
*/
public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $render_cache, DateFormatter $date_formater, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer) {
public function __construct(ConfigFactoryInterface $config_factory, CacheBackendInterface $render_cache, DateFormatter $date_formatter, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer) {
parent::__construct($config_factory);
$this->renderCache = $render_cache;
$this->dateFormatter = $date_formater;
$this->dateFormatter = $date_formatter;
$this->cssCollectionOptimizer = $css_collection_optimizer;
$this->jsCollectionOptimizer = $js_collection_optimizer;
}
......
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