Add Idiorm to MailPoetVendor namespace

[MAILPOET-2545]
This commit is contained in:
Jan Jakeš
2019-11-25 17:40:12 +01:00
committed by Jack Kitterhing
parent eb130c1aea
commit 60889c53f4
116 changed files with 632 additions and 507 deletions

View File

@@ -6,6 +6,7 @@ use MailPoet\DynamicSegments\Filters\UserRole;
use MailPoet\DynamicSegments\Mappers\DBMapper;
use MailPoet\Models\DynamicSegment;
use MailPoet\Models\DynamicSegmentFilter;
use MailPoetVendor\Idiorm\ORM;
class SingleSegmentLoaderTest extends \MailPoetTest {
@@ -16,8 +17,8 @@ class SingleSegmentLoaderTest extends \MailPoetTest {
function _before() {
$this->loader = new SingleSegmentLoader(new DBMapper());
\ORM::raw_execute('TRUNCATE ' . DynamicSegment::$_table);
\ORM::raw_execute('TRUNCATE ' . DynamicSegmentFilter::$_table);
ORM::raw_execute('TRUNCATE ' . DynamicSegment::$_table);
ORM::raw_execute('TRUNCATE ' . DynamicSegmentFilter::$_table);
$this->segment = DynamicSegment::createOrUpdate([
'name' => 'segment 1',
'description' => 'description',
@@ -56,8 +57,8 @@ class SingleSegmentLoaderTest extends \MailPoetTest {
}
function _after() {
\ORM::raw_execute('TRUNCATE ' . DynamicSegment::$_table);
\ORM::raw_execute('TRUNCATE ' . DynamicSegmentFilter::$_table);
ORM::raw_execute('TRUNCATE ' . DynamicSegment::$_table);
ORM::raw_execute('TRUNCATE ' . DynamicSegmentFilter::$_table);
}
}