FIXES #17414 - Adjusting export object in PluginExport to export databases with comp… (#17491)

* Adjusting export object in PluginExport to export databases with compress

Signed-off-by: Rodrigo Pokemaobr <contato@pokemaobr.dev>

* Adjusting dbi in tests and psalm requisites

Signed-off-by: Rodrigo Pokemaobr <contato@pokemaobr.dev>

* Adjusting dbi in tests and psalm requisites

Signed-off-by: Rodrigo Pokemaobr <contato@pokemaobr.dev>

* Adjusting dbi in tests and psalm requisites

Signed-off-by: Rodrigo Pokemaobr <contato@pokemaobr.dev>
This commit is contained in:
Rodrigo Wanderley de Melo Cardoso 2022-04-23 00:33:41 -03:00 committed by GitHub
parent 4d1d015846
commit 518a37d23f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -39,13 +39,14 @@ abstract class ExportPlugin implements Plugin
/** @var Transformations */
protected $transformations;
/**
* @psalm-suppress InvalidArrayOffset, MixedAssignment, MixedMethodCall
*/
final public function __construct()
{
global $dbi;
$this->relation = new Relation($dbi);
$this->export = new Export($dbi);
$this->transformations = new Transformations();
$this->relation = $GLOBALS['containerBuilder']->get('relation');
$this->export = $GLOBALS['containerBuilder']->get('export');
$this->transformations = $GLOBALS['containerBuilder']->get('transformations');
$this->init();
$this->properties = $this->setProperties();
}

View File

@ -89,6 +89,7 @@ abstract class AbstractTestCase extends TestCase
$this->setGlobalConfig();
$this->loadContainerBuilder();
$this->setGlobalDbi();
$this->loadDbiIntoContainerBuilder();
Cache::purge();
}