Verified Commit cfb5a31d authored by Dave Long's avatar Dave Long
Browse files

Issue #3459747 by quietone, smustgrave: Fix 12 words in tests

(cherry picked from commit 3ef0e0a2)
parent 0053ca5f
Loading
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ backported
backporting
backports
bakeware
barbar
barchart
basefield
basepath
@@ -58,7 +57,6 @@ bidi
bigpipe
bitmask
bkmgtpezy
bkslshv
blockarticles
blockbasic
blockcontent
@@ -219,7 +217,6 @@ etag
eurozone
evenodd
eventhandler
exampleurl
exitcode
expirable
extlink
@@ -228,7 +225,6 @@ extraspace
failonerror
fakepath
falsey
falsish
fapi
fastcgi
favourite
@@ -303,14 +299,12 @@ invokable
isam
isinstallable
itok
ized
javascripts
jessebeach
jqueryui
jsonlint
jssdk
justinrainbow
kangarookitten
keyevent
keypresses
keyvalue
@@ -386,9 +380,8 @@ mulrevpub
multibuys
multibyte
multicardinality
multilanguage
multipass
multisite
multistar
multistep
multivalue
multivalued
@@ -436,7 +429,6 @@ oembed
omittable
onecol
oneplusfourgrid
onetwo
onewidgetfield
optgroups
optin
@@ -448,7 +440,6 @@ overrider
overrider's
overriders
pagecache
pagetop
paramconverter
parseable
parsererror
@@ -500,7 +491,6 @@ prophesizing
protobuf
protossl
pseudotag
ptablenode
puzzlepiece
pwprompt
questionmark
@@ -678,7 +668,6 @@ tmpfs
toggleable
tongatapu
toolkits
toolongdomainexampledomainexampledomainexampledomainexampledomain
toplevel
torder
touchevents
+4 −2
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
use Drupal\filter\Plugin\FilterInterface;
use Drupal\KernelTests\KernelTestBase;

// cspell:ignore toolongdomainexampledomainexampledomainexampledomainexampledomain

/**
 * Tests Filter module filters individually.
 *
@@ -902,11 +904,11 @@ public function testUrlFilter(): void {
      '<script>
      <!--
        // @see www.example.com
        var exampleurl = "http://example.net";
        var example_url = "http://example.net";
      -->
      <!--//--><![CDATA[//><!--
        // @see www.example.com
        var exampleurl = "http://example.net";
        var example_url = "http://example.net";
      //--><!]]>
      </script>' => [
        'href="http://www.example.com"' => FALSE,
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ public function testSearchExcerptSimplified(): void {
    $result = $this->doSearchExcerpt('"Number 1234567890"', $text);
    $this->assertStringContainsString('<strong>Number: 123456.7890</strong>', $result, 'Phrase with punctuated and numeric keyword is highlighted with simplified match');

    $result = $this->doSearchExcerpt('"Hyphenated onetwo"', $text);
    $result = $this->doSearchExcerpt('"Hyphenated OneTwo"', $text);
    $this->assertStringContainsString('<strong>Hyphenated: one-two</strong>', $result, 'Phrase with punctuated and hyphenated keyword is highlighted with simplified match');

    $result = $this->doSearchExcerpt('"abc def"', $text);
+1 −1
Original line number Diff line number Diff line
@@ -25,5 +25,5 @@
<div><span{{ attributes|without('checked', without_args) }}>Without any attributes via mixed string then array.</span></div>
<div><span{{ attributes|without(without_args, ['id', 'checked']) }}>Without any attributes with duplicate "id" key.</span></div>
<div><span{{ attributes }}>All attributes again.</span></div>
<div id="{{ 'quotes Here!'|clean_id }}"><span class="{{ 'Gray like a bunny!'|clean_class }} {{ 'BEM__ized--Top Feature'|clean_class }}" id="{{ 'quotes Here!'|clean_id }}">ID and class. Having the same ID twice is not valid markup but we want to make sure the filter doesn't use \Drupal\Component\Utility\Html::getUniqueId().</span></div>
<div id="{{ 'quotes Here!'|clean_id }}"><span class="{{ 'Gray like a bunny!'|clean_class }} {{ 'BEM__used--Top Feature'|clean_class }}" id="{{ 'quotes Here!'|clean_id }}">ID and class. Having the same ID twice is not valid markup but we want to make sure the filter doesn't use \Drupal\Component\Utility\Html::getUniqueId().</span></div>
<div><strong>Rendered author string length:</strong> {{ quote.author|render|length }}.</div>
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ protected function setUp(): void {
      3 => MenuLinkMock::create(['id' => 'test.example3', 'route_name' => 'example3', 'title' => 'baz', 'parent' => 'test.example2', 'weight' => 2]),
      4 => MenuLinkMock::create(['id' => 'test.example4', 'route_name' => 'example4', 'title' => 'qux', 'parent' => 'test.example3', 'weight' => 3]),
      5 => MenuLinkMock::create(['id' => 'test.example5', 'route_name' => 'example5', 'title' => 'title5', 'parent' => '', 'expanded' => TRUE, 'weight' => 4]),
      6 => MenuLinkMock::create(['id' => 'test.example6', 'route_name' => '', 'url' => 'https://www.drupal.org/', 'title' => 'barbar', 'parent' => '', 'weight' => 5]),
      6 => MenuLinkMock::create(['id' => 'test.example6', 'route_name' => '', 'url' => 'https://www.drupal.org/', 'title' => 'bar_bar', 'parent' => '', 'weight' => 5]),
      7 => MenuLinkMock::create(['id' => 'test.example7', 'route_name' => 'example7', 'title' => 'title7', 'parent' => 'test.example5', 'weight' => 6]),
      8 => MenuLinkMock::create(['id' => 'test.example8', 'route_name' => 'example8', 'title' => 'title8', 'parent' => '', 'weight' => 7]),
    ];
Loading