File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
dev/tests/integration/testsuite/Magento
Backend/Block/Widget/Button Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ public function testToHtml(): void
8484 $ this ->assertStringContainsString ('<span>A button</span> ' , $ html );
8585 $ this ->assertStringNotContainsString ('onclick= ' , $ html );
8686 $ this ->assertStringNotContainsString ('style= ' , $ html );
87- $ this ->assertMatchesRegularExpression ('/\<script.*?\>.*? ' . preg_quote ($ onclick ) . '.*?\<\/script\>/ims ' , $ html );
87+ $ this ->assertMatchesRegularExpression (
88+ '/\<script.*?\>.*? ' . preg_quote ($ onclick ) . '.*?\<\/script\>/ims ' ,
89+ $ html
90+ );
8891 $ this ->assertStringContainsString ('width ' , $ html );
8992 $ this ->assertStringContainsString ('100px ' , $ html );
9093 $ this ->assertStringContainsString ('aria-label="Split button options" ' , $ html );
Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ public function testToHtml(): void
8686 $ this ->assertStringContainsString ('<span>Split button control</span> ' , $ html );
8787 $ this ->assertStringNotContainsString ('onclick= ' , $ html );
8888 $ this ->assertStringNotContainsString ('style= ' , $ html );
89- $ this ->assertMatchesRegularExpression ('/\<script.*?\>.*? ' . preg_quote ($ onclick ) . '.*?\<\/script\>/ims ' , $ html );
89+ $ this ->assertMatchesRegularExpression (
90+ '/\<script.*?\>.*? ' . preg_quote ($ onclick ) . '.*?\<\/script\>/ims ' ,
91+ $ html
92+ );
9093 $ this ->assertStringContainsString ('width ' , $ html );
9194 $ this ->assertStringContainsString ('100px ' , $ html );
9295 $ this ->assertStringContainsString ('aria-label="Split button options" ' , $ html );
You can’t perform that action at this time.
0 commit comments