From bcbbce786653d9b733dc6200178e7d9b0611bd4f Mon Sep 17 00:00:00 2001 From: "cristian.almohalla" Date: Tue, 20 Sep 2022 10:27:00 +0200 Subject: [PATCH] feat: update ddd dependencies --- composer.json | 7 ++++++- tests/Info/InfoProcessorTest.php | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index d9be47a..89ff2be 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "php": "^7.4|^8.0", "ext-json": "*", "monolog/monolog": "^1.25|^2.0", - "pccomponentes/ddd": "^2.1|^3.0", + "pccomponentes/ddd": "^2.1|^3.0|^4.0", "symfony/http-kernel": "^4.4|^5.0", "symfony/messenger": "^4.4|^5.0", "symfony/http-foundation": "^4.4|^5.0", @@ -47,5 +47,10 @@ "psr-4": { "PcComponentes\\DddLogging\\Tests\\": "tests/" } + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/tests/Info/InfoProcessorTest.php b/tests/Info/InfoProcessorTest.php index 33d6cfc..18ded92 100644 --- a/tests/Info/InfoProcessorTest.php +++ b/tests/Info/InfoProcessorTest.php @@ -7,8 +7,8 @@ use PcComponentes\Ddd\Domain\Model\ValueObject\Uuid; use PcComponentes\Ddd\Util\Message\AggregateMessage; use PcComponentes\Ddd\Util\Message\SimpleMessage; +use PcComponentes\Ddd\Util\Message\ValueObject\AggregateId; use PcComponentes\DddLogging\Info\InfoProcessor; -use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; final class InfoProcessorTest extends TestCase @@ -75,7 +75,7 @@ public function testShouldReturnedWithAggregateMessageInfo() ->method('value') ->willReturn($stringMessageUuid); - $aggregateIdMock = $this->createMock(Uuid::class); + $aggregateIdMock = $this->createMock(AggregateId::class); $aggregateIdMock ->method('value') ->willReturn($stringAggregateUuid);