Refactor subscriber statistics to doctrine

[MAILPOET-3168]
This commit is contained in:
Pavel Dohnal
2021-01-06 11:12:30 +01:00
committed by Veljko V
parent de6e0e5adb
commit 1d6cf56fd9
5 changed files with 55 additions and 20 deletions

View File

@ -16,7 +16,7 @@ class SegmentsResponseBuilderTest extends \MailPoetTest {
$segment = new SegmentEntity($name, SegmentEntity::TYPE_DEFAULT, $description);
$em->persist($segment);
$em->flush();
$responseBuilder = new SegmentsResponseBuilder();
$responseBuilder = $di->get(SegmentsResponseBuilder::class);
$response = $responseBuilder->build($segment);
expect($response['name'])->equals($name);