Skip to content
Snippets Groups Projects
Commit c5a0c9f2 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2344823 by martin107:...

Issue #2344823 by martin107: Drupal\Tests\editor\Unit\EditorXssFilter\StandardTest has trivial lint error.
parent 2dd8e057
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -16,13 +16,6 @@
*/
class StandardTest extends UnitTestCase {
/**
* The tested text editor XSS filter.
*
* @var \Drupal\editor\EditorXssFilter\Standard
*/
protected $editorXssFilterClass;
/**
* The mocked text format configuration entity.
*
......@@ -31,7 +24,6 @@ class StandardTest extends UnitTestCase {
protected $format;
protected function setUp() {
$this->editorXssFilterClass = '\Drupal\editor\EditorXssFilter\Standard';
// Mock text format configuration entity object.
$this->format = $this->getMockBuilder('\Drupal\filter\Entity\FilterFormat')
......@@ -538,7 +530,7 @@ public function providerTestFilterXss() {
* @dataProvider providerTestFilterXss
*/
public function testFilterXss($input, $expected_output) {
$output = call_user_func($this->editorXssFilterClass . '::filterXss', $input, $this->format);
$output = call_user_func('\Drupal\editor\EditorXssFilter\Standard::filterXss', $input, $this->format);
$this->assertSame($expected_output, $output);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment