Issue #3160124 by jungle, jameszhang023, alexpott: Fix "wiget, escapeable, PHPunit" typos in Core

merge-requests/2/head
Alex Pott 2020-07-21 19:36:44 +01:00
parent 1859ee95b0
commit 0345c33765
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
5 changed files with 8 additions and 11 deletions

View File

@ -217,7 +217,7 @@ class PhpUnitTestRunner implements ContainerInjectionInterface {
'test_id' => $test_id, 'test_id' => $test_id,
'test_class' => implode(",", $unescaped_test_classnames), 'test_class' => implode(",", $unescaped_test_classnames),
'status' => TestStatus::label($status), 'status' => TestStatus::label($status),
'message' => 'PHPunit Test failed to complete; Error: ' . implode("\n", $output), 'message' => 'PHPUnit Test failed to complete; Error: ' . implode("\n", $output),
'message_group' => 'Other', 'message_group' => 'Other',
'function' => implode(",", $unescaped_test_classnames), 'function' => implode(",", $unescaped_test_classnames),
'line' => '0', 'line' => '0',

View File

@ -569,7 +569,6 @@ eridani
errmode errmode
errored errored
errrf errrf
escapeable
eslintignore eslintignore
eslinting eslinting
espagnol espagnol
@ -1392,7 +1391,6 @@ pseudotag
ptablenode ptablenode
pterm pterm
pulks pulks
punit
puzzlepiece puzzlepiece
pvde pvde
pwprompt pwprompt
@ -2070,7 +2068,6 @@ whos
widget's widget's
widt widt
widthx widthx
wiget
wimoids wimoids
windir windir
winnt winnt

View File

@ -55,7 +55,7 @@ class ViewsUiIntegrationTest extends MediaLibraryTestBase {
$page->find('css', '.js-media-library-view .view-filters')->pressButton('Apply filters'); $page->find('css', '.js-media-library-view .view-filters')->pressButton('Apply filters');
$this->waitForElementsCount('css', '.js-media-library-item', 1); $this->waitForElementsCount('css', '.js-media-library-item', 1);
// Test the same routine but in the view for the table wiget. // Test the same routine but in the view for the table widget.
$this->drupalGet('/admin/structure/views/view/media_library/edit/widget_table'); $this->drupalGet('/admin/structure/views/view/media_library/edit/widget_table');
$this->waitForElementsCount('css', '.js-media-library-item', 8); $this->waitForElementsCount('css', '.js-media-library-item', 8);

View File

@ -21,9 +21,9 @@ class HtmlEscapedTextTest extends TestCase {
* @dataProvider providerToString * @dataProvider providerToString
*/ */
public function testToString($text, $expected, $message) { public function testToString($text, $expected, $message) {
$escapeable_string = new HtmlEscapedText($text); $escapable_string = new HtmlEscapedText($text);
$this->assertEquals($expected, (string) $escapeable_string, $message); $this->assertEquals($expected, (string) $escapable_string, $message);
$this->assertEquals($expected, $escapeable_string->jsonSerialize()); $this->assertEquals($expected, $escapable_string->jsonSerialize());
} }
/** /**
@ -57,8 +57,8 @@ class HtmlEscapedTextTest extends TestCase {
*/ */
public function testCount() { public function testCount() {
$string = 'Can I please have a <em>kitten</em>'; $string = 'Can I please have a <em>kitten</em>';
$escapeable_string = new HtmlEscapedText($string); $escapable_string = new HtmlEscapedText($string);
$this->assertEquals(strlen($string), $escapeable_string->count()); $this->assertEquals(strlen($string), $escapable_string->count());
} }
} }

View File

@ -57,7 +57,7 @@ class PhpUnitTestRunnerTest extends UnitTestCase {
'test_id' => $test_id, 'test_id' => $test_id,
'test_class' => 'SomeTest', 'test_class' => 'SomeTest',
'status' => TestStatus::label(TestStatus::EXCEPTION), 'status' => TestStatus::label(TestStatus::EXCEPTION),
'message' => 'PHPunit Test failed to complete; Error: ', 'message' => 'PHPUnit Test failed to complete; Error: ',
'message_group' => 'Other', 'message_group' => 'Other',
'function' => 'SomeTest', 'function' => 'SomeTest',
'line' => '0', 'line' => '0',