From d92c5e5590d8adf539a4401c218ef33023310e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 12 Aug 2013 18:01:23 +0200 Subject: [PATCH] Fix expected data without html escaping --- test/classes/plugin/export/PMA_ExportCodegen_test.php | 8 ++++---- .../classes/plugin/export/PMA_ExportHtmlword_test.php | 11 ++++++----- .../plugin/export/PMA_ExportMediawiki_test.php | 8 ++++---- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/test/classes/plugin/export/PMA_ExportCodegen_test.php b/test/classes/plugin/export/PMA_ExportCodegen_test.php index 156b37f499b0..297d53ac92b2 100644 --- a/test/classes/plugin/export/PMA_ExportCodegen_test.php +++ b/test/classes/plugin/export/PMA_ExportCodegen_test.php @@ -256,22 +256,22 @@ public function testExportData() $result = ob_get_clean(); $this->assertContains( - '<?xml version="1.0" encoding="utf-8" ?>', + '', $result ); $this->assertContains( - '<class name="TestTable" table="TestTable">', + '', $result ); $this->assertContains( - '</class>', + '', $result ); $this->assertContains( - '</hibernate-mapping>', + '', $result ); diff --git a/test/classes/plugin/export/PMA_ExportHtmlword_test.php b/test/classes/plugin/export/PMA_ExportHtmlword_test.php index b79d21c439af..47d8b00ad296 100644 --- a/test/classes/plugin/export/PMA_ExportHtmlword_test.php +++ b/test/classes/plugin/export/PMA_ExportHtmlword_test.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin-test */ require_once 'libraries/plugins/export/ExportHtmlword.class.php'; +require_once 'libraries/DatabaseInterface.class.php'; require_once 'libraries/Util.class.php'; require_once 'libraries/Theme.class.php'; require_once 'libraries/Config.class.php'; @@ -295,7 +296,7 @@ public function testExportDBHeader() $result = ob_get_clean(); $this->assertEquals( - '<h1>Database d&quot;b</h1>', + '

Database d&quot;b

', $result ); } @@ -828,7 +829,7 @@ public function testExportStructure() $result = ob_get_clean(); $this->assertEquals( - '<h2>Table structure for table tbl</h2>dumpText1', + '

Table structure for table tbl

dumpText1', $result ); @@ -841,7 +842,7 @@ public function testExportStructure() $result = ob_get_clean(); $this->assertEquals( - '<h2>Triggers tbl</h2>dumpText2', + '

Triggers tbl

dumpText2', $result ); @@ -854,7 +855,7 @@ public function testExportStructure() $result = ob_get_clean(); $this->assertEquals( - '<h2>Structure for view tbl</h2>dumpText3', + '

Structure for view tbl

dumpText3', $result ); @@ -867,7 +868,7 @@ public function testExportStructure() $result = ob_get_clean(); $this->assertEquals( - '<h2>Stand-in structure for view tbl</h2>dumpText4', + '

Stand-in structure for view tbl

dumpText4', $result ); } diff --git a/test/classes/plugin/export/PMA_ExportMediawiki_test.php b/test/classes/plugin/export/PMA_ExportMediawiki_test.php index d6a5d61dd45a..7a7491c89e21 100644 --- a/test/classes/plugin/export/PMA_ExportMediawiki_test.php +++ b/test/classes/plugin/export/PMA_ExportMediawiki_test.php @@ -300,9 +300,9 @@ public function testExportStructure() $result = ob_get_clean(); $this->assertEquals( - "\n<!--\n" . + "\n\n" . "\n" . "{| class="wikitable" style="text-align:center;"\n" . "|+'''table'''\n" . @@ -415,9 +415,9 @@ public function testExportData() $result = ob_get_clean(); $this->assertEquals( - "\n<!--\n" . + "\n\n" . "\n" . "{| class="wikitable sortable" style="text-align:" . "center;"\n" .