Issue #3159528 by jameszhang023, jungle, longwave: Fix typos: "exeption|gaurd|ouptut|withut|defintion" in core
parent
3b7fdfe0d8
commit
38d02d6e4b
|
@ -205,7 +205,7 @@ class PhpUnitTestRunner implements ContainerInjectionInterface {
|
|||
*/
|
||||
public function runTests($test_id, array $unescaped_test_classnames, &$status = NULL) {
|
||||
$phpunit_file = $this->xmlLogFilePath($test_id);
|
||||
// Store ouptut from our test run.
|
||||
// Store output from our test run.
|
||||
$output = [];
|
||||
$this->runCommand($unescaped_test_classnames, $phpunit_file, $status, $output);
|
||||
|
||||
|
|
|
@ -415,7 +415,6 @@ deduplicates
|
|||
defalt
|
||||
defaultable
|
||||
defgroup
|
||||
defintion
|
||||
deletable
|
||||
deletedline
|
||||
deletee
|
||||
|
@ -583,7 +582,6 @@ evenodd
|
|||
eventhandler
|
||||
exampleurl
|
||||
exdep
|
||||
exeption
|
||||
existant
|
||||
exitcode
|
||||
expirable
|
||||
|
@ -696,7 +694,6 @@ funic
|
|||
furchtbar
|
||||
gabilondo
|
||||
gato
|
||||
gaurd
|
||||
gbmb
|
||||
getcode
|
||||
getfile
|
||||
|
@ -1252,7 +1249,6 @@ othername
|
|||
otherpage
|
||||
otherprofile
|
||||
otsikko
|
||||
ouptut
|
||||
outdata
|
||||
outdent
|
||||
outdir
|
||||
|
@ -2078,7 +2074,6 @@ wiget
|
|||
wimoids
|
||||
windir
|
||||
winnt
|
||||
withut
|
||||
wmlscript
|
||||
woff
|
||||
wonkiness
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
function config_schema_test_config_schema_info_alter(&$definitions) {
|
||||
if (\Drupal::state()->get('config_schema_test_exception_add')) {
|
||||
$definitions['config_schema_test.hook_added_defintion'] = $definitions['config_schema_test.hook'];
|
||||
$definitions['config_schema_test.hook_added_definition'] = $definitions['config_schema_test.hook'];
|
||||
}
|
||||
if (\Drupal::state()->get('config_schema_test_exception_remove')) {
|
||||
unset($definitions['config_schema_test.hook']);
|
||||
|
|
|
@ -63,7 +63,7 @@ trait CommonCollectionFilterAccessTestPatternsTrait {
|
|||
|
||||
// Test.
|
||||
$collection_url = Url::fromRoute('jsonapi.entity_test--bar.collection');
|
||||
// Specifying a delta exercises TemporaryQueryGaurd more thoroughly.
|
||||
// Specifying a delta exercises TemporaryQueryGuard more thoroughly.
|
||||
$filter_path = "spotlight.0.$label_field_name";
|
||||
$collection_filter_url = $collection_url->setOption('query', ["filter[$filter_path]" => $this->entity->label()]);
|
||||
$request_options = [];
|
||||
|
|
|
@ -574,7 +574,7 @@ class ConfigSchemaTest extends KernelTestBase {
|
|||
$this->fail('Expected ConfigSchemaAlterException thrown.');
|
||||
}
|
||||
catch (ConfigSchemaAlterException $e) {
|
||||
$this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_defintion) and removed (config_schema_test.hook) schema definitions');
|
||||
$this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_definition) and removed (config_schema_test.hook) schema definitions');
|
||||
}
|
||||
|
||||
\Drupal::state()->set('config_schema_test_exception_remove', FALSE);
|
||||
|
@ -583,7 +583,7 @@ class ConfigSchemaTest extends KernelTestBase {
|
|||
$this->fail('Expected ConfigSchemaAlterException thrown.');
|
||||
}
|
||||
catch (ConfigSchemaAlterException $e) {
|
||||
$this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_defintion) schema definitions');
|
||||
$this->assertEqual($e->getMessage(), 'Invoking hook_config_schema_info_alter() has added (config_schema_test.hook_added_definition) schema definitions');
|
||||
}
|
||||
|
||||
// Tests that hook_config_schema_info_alter() can add additional metadata to
|
||||
|
|
|
@ -1214,7 +1214,7 @@ DOCBLOCK;
|
|||
$this->assertInstanceOf(Null::class, $result[0]);
|
||||
}
|
||||
|
||||
public function testSetValuesExeption()
|
||||
public function testSetValuesException()
|
||||
{
|
||||
$this->expectException('\Doctrine\Common\Annotations\AnnotationException');
|
||||
$this->expectExceptionMessage('[Creation Error] The annotation @SomeAnnotationClassNameWithoutConstructor declared on some class does not have a property named "invalidaProperty". Available properties: data, name');
|
||||
|
|
|
@ -62,7 +62,7 @@ class StaticDiscoveryDecoratorTest extends TestCase {
|
|||
// Mock our StaticDiscoveryDecorator.
|
||||
$mock_decorator = $this->getMockBuilder('Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['registeredDefintionCallback'])
|
||||
->setMethods(['registeredDefinitionCallback'])
|
||||
->getMock();
|
||||
|
||||
// Set up the ::$registerDefinitions property.
|
||||
|
@ -132,7 +132,7 @@ class StaticDiscoveryDecoratorTest extends TestCase {
|
|||
// Mock our StaticDiscoveryDecorator.
|
||||
$mock_decorator = $this->getMockBuilder('Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(['registeredDefintionCallback'])
|
||||
->setMethods(['registeredDefinitionCallback'])
|
||||
->getMock();
|
||||
|
||||
// Set up the ::$registerDefinitions property.
|
||||
|
|
|
@ -36,8 +36,8 @@ class EntityTypeTest extends UnitTestCase {
|
|||
*
|
||||
* @dataProvider providerTestGet
|
||||
*/
|
||||
public function testGet(array $defintion, $key, $expected) {
|
||||
$entity_type = $this->setUpEntityType($defintion);
|
||||
public function testGet(array $definition, $key, $expected) {
|
||||
$entity_type = $this->setUpEntityType($definition);
|
||||
$this->assertSame($expected, $entity_type->get($key));
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class PluginWithFormsTraitTest extends UnitTestCase {
|
|||
return [
|
||||
'block plugin without forms, "configure" operation' => [$block_plugin_without_forms, 'configure', TestClass::class],
|
||||
'block plugin without forms, "tickle" operation' => [$block_plugin_without_forms, 'tickle', NULL],
|
||||
'block plugin withut forms, "poke" operation' => [$block_plugin_without_forms, 'poke', NULL],
|
||||
'block plugin without forms, "poke" operation' => [$block_plugin_without_forms, 'poke', NULL],
|
||||
'block plugin with forms, "configure" operation' => [$block_plugin_with_forms, 'configure', TestClass::class],
|
||||
'block plugin with forms, "tickle" operation' => [$block_plugin_with_forms, 'tickle', NULL],
|
||||
'block plugin with forms, "poke" operation' => [$block_plugin_with_forms, 'poke', static::class],
|
||||
|
|
Loading…
Reference in New Issue