Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/classes/Plugins/Export/ExportOdsTest.php')
-rw-r--r--test/classes/Plugins/Export/ExportOdsTest.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/classes/Plugins/Export/ExportOdsTest.php b/test/classes/Plugins/Export/ExportOdsTest.php
index 2c2268e4b8..4029e353f4 100644
--- a/test/classes/Plugins/Export/ExportOdsTest.php
+++ b/test/classes/Plugins/Export/ExportOdsTest.php
@@ -4,7 +4,9 @@ declare(strict_types=1);
namespace PhpMyAdmin\Tests\Plugins\Export;
+use PhpMyAdmin\ConfigStorage\Relation;
use PhpMyAdmin\DatabaseInterface;
+use PhpMyAdmin\Export;
use PhpMyAdmin\FieldMetadata;
use PhpMyAdmin\Plugins\Export\ExportOds;
use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup;
@@ -15,6 +17,7 @@ use PhpMyAdmin\Properties\Options\Items\TextPropertyItem;
use PhpMyAdmin\Properties\Plugins\ExportPluginProperties;
use PhpMyAdmin\Tests\AbstractTestCase;
use PhpMyAdmin\Tests\Stubs\DummyResult;
+use PhpMyAdmin\Transformations;
use ReflectionMethod;
use ReflectionProperty;
use stdClass;
@@ -45,13 +48,18 @@ class ExportOdsTest extends AbstractTestCase
protected function setUp(): void
{
parent::setUp();
+ $GLOBALS['dbi'] = $this->createDatabaseInterface();
$GLOBALS['server'] = 0;
$GLOBALS['output_kanji_conversion'] = false;
$GLOBALS['output_charset_conversion'] = false;
$GLOBALS['buffer_needed'] = false;
$GLOBALS['asfile'] = true;
$GLOBALS['save_on_server'] = false;
- $this->object = new ExportOds();
+ $this->object = new ExportOds(
+ new Relation($GLOBALS['dbi']),
+ new Export($GLOBALS['dbi']),
+ new Transformations()
+ );
}
/**
@@ -357,7 +365,7 @@ class ExportOdsTest extends AbstractTestCase
$this->assertEquals(
'<table:table table:name="table"><table:table-row><table:table-cell ' .
- 'office:value-type="string"><text:p>fna&quot;me</text:p></table:table' .
+ 'office:value-type="string"><text:p>fna\&quot;me</text:p></table:table' .
'-cell><table:table-cell office:value-type="string"><text:p>' .
'fnam/&lt;e2</text:p></table:table-cell></table:table-row>' .
'</table:table>',