diff --git a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php deleted file mode 100644 index 5d91526..0000000 --- a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php +++ /dev/null @@ -1,89 +0,0 @@ -assertInstanceOf('\DomDocument', $doc); - - foreach ($tags as $tag_name => $length) { - $tag = $doc->getElementsByTagName($tag_name); - $this->assertEquals($length, $tag->length); - } - } - - /** - * Test HTML document serialization. - * - * @dataProvider providerTestLoad - * @covers ::serialize - * - * @param string $html - * Original HTML. - * @param array $tags - * A list of tags to find. Key is tag, value is number instances. - * @param $expected - * Expected serialized value. - */ - public function testSerialize($html, $tags, $expected) { - $doc = Html::load($html); - $this->assertEquals($expected, Html::serialize($doc)); - } - - public function providerTestLoad() { - return array( - array('', array('a' => 1), ''), - array('', array('a' => 1), ''), - // Bad html - array('
', array('div' => 1, 'something' => 2), '
'), - array(' 1), ''), - ); - } - - /** - * Test HTML normalization. - * - * @dataProvider providerTestLoad - * @covers ::normalize - * - * @param string $html - * Original HTML. - * @param array $tags - * A list of tags to find. Key is tag, value is number instances. - * @param $expected - * Expected normalized value. - */ - public function testNormalize($html, $tags, $expected) { - $this->assertEquals($expected, Html::normalize($html)); - } - -}