Skip to content

Commit

Permalink
Fix expected data without html escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Aug 12, 2013
1 parent 6521ed2 commit d92c5e5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions test/classes/plugin/export/PMA_ExportCodegen_test.php
Expand Up @@ -256,22 +256,22 @@ public function testExportData()
$result = ob_get_clean();

$this->assertContains(
'<?xml version="1.0" encoding="utf-8" ?>',
'<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?>',
$result
);

$this->assertContains(
'&lt;class name=&quot;TestTable&quot; table=&quot;TestTable&quot;&gt;',
'<class name=&quot;TestTable&quot; table=&quot;TestTable&quot;>',
$result
);

$this->assertContains(
'&lt;/class&gt;',
'</class>',
$result
);

$this->assertContains(
'&lt;/hibernate-mapping&gt;',
'</hibernate-mapping>',
$result
);

Expand Down
11 changes: 6 additions & 5 deletions test/classes/plugin/export/PMA_ExportHtmlword_test.php
Expand Up @@ -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';
Expand Down Expand Up @@ -295,7 +296,7 @@ public function testExportDBHeader()
$result = ob_get_clean();

$this->assertEquals(
'&lt;h1&gt;Database d&amp;quot;b&lt;/h1&gt;',
'<h1>Database d&amp;quot;b</h1>',
$result
);
}
Expand Down Expand Up @@ -828,7 +829,7 @@ public function testExportStructure()
$result = ob_get_clean();

$this->assertEquals(
'&lt;h2&gt;Table structure for table tbl&lt;/h2&gt;dumpText1',
'<h2>Table structure for table tbl</h2>dumpText1',
$result
);

Expand All @@ -841,7 +842,7 @@ public function testExportStructure()
$result = ob_get_clean();

$this->assertEquals(
'&lt;h2&gt;Triggers tbl&lt;/h2&gt;dumpText2',
'<h2>Triggers tbl</h2>dumpText2',
$result
);

Expand All @@ -854,7 +855,7 @@ public function testExportStructure()
$result = ob_get_clean();

$this->assertEquals(
'&lt;h2&gt;Structure for view tbl&lt;/h2&gt;dumpText3',
'<h2>Structure for view tbl</h2>dumpText3',
$result
);

Expand All @@ -867,7 +868,7 @@ public function testExportStructure()
$result = ob_get_clean();

$this->assertEquals(
'&lt;h2&gt;Stand-in structure for view tbl&lt;/h2&gt;dumpText4',
'<h2>Stand-in structure for view tbl</h2>dumpText4',
$result
);
}
Expand Down
8 changes: 4 additions & 4 deletions test/classes/plugin/export/PMA_ExportMediawiki_test.php
Expand Up @@ -300,9 +300,9 @@ public function testExportStructure()
$result = ob_get_clean();

$this->assertEquals(
"\n&lt;!--\n" .
"\n<!--\n" .
"Table structure for `table`\n" .
"--&gt;\n" .
"-->\n" .
"\n" .
"{| class=&quot;wikitable&quot; style=&quot;text-align:center;&quot;\n" .
"|+'''table'''\n" .
Expand Down Expand Up @@ -415,9 +415,9 @@ public function testExportData()
$result = ob_get_clean();

$this->assertEquals(
"\n&lt;!--\n" .
"\n<!--\n" .
"Table data for `table`\n" .
"--&gt;\n" .
"-->\n" .
"\n" .
"{| class=&quot;wikitable sortable&quot; style=&quot;text-align:" .
"center;&quot;\n" .
Expand Down

0 comments on commit d92c5e5

Please sign in to comment.