Unverified Commit 017a8155 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3159528 by jameszhang023, jungle, longwave: Fix typos:...

Issue #3159528 by jameszhang023, jungle, longwave: Fix typos: "exeption|gaurd|ouptut|withut|defintion" in core

(cherry picked from commit 38d02d6e)
(cherry picked from commit e8afa49a)
parent 1029fec2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ public function runCommand(array $unescaped_test_classnames, $phpunit_file, &$st
   */
  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);

+1 −1
Original line number Diff line number Diff line
@@ -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']);
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ public function doTestCollectionFilterAccessBasedOnPermissions($label_field_name

    // 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 = [];
+2 −2
Original line number Diff line number Diff line
@@ -578,7 +578,7 @@ public function testConfigSchemaInfoAlter() {
    }
    catch (ConfigSchemaAlterException $e) {
      $this->pass($message);
      $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);
@@ -589,7 +589,7 @@ public function testConfigSchemaInfoAlter() {
    }
    catch (ConfigSchemaAlterException $e) {
      $this->pass($message);
      $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
+1 −1
Original line number Diff line number Diff line
@@ -1216,7 +1216,7 @@ public function testReservedKeywordsInAnnotations()
        $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');
Loading