From d81f993bae58eae1af07c2a9fe9e2960b1d4b208 Mon Sep 17 00:00:00 2001 From: Daniel Badura Date: Sun, 7 Feb 2021 11:27:55 +0100 Subject: [PATCH] cs fix --- tests/Unit/Aggregate/AggregateChangedTest.php | 1 + tests/Unit/Pipeline/Target/InMemoryTargetTest.php | 1 - tests/Unit/Pipeline/Target/ProjectionTargetTest.php | 2 +- tests/Unit/Repository/RepositoryTest.php | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Aggregate/AggregateChangedTest.php b/tests/Unit/Aggregate/AggregateChangedTest.php index 96ee8636..3bccdc50 100644 --- a/tests/Unit/Aggregate/AggregateChangedTest.php +++ b/tests/Unit/Aggregate/AggregateChangedTest.php @@ -11,6 +11,7 @@ use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileCreated; use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileId; use PHPUnit\Framework\TestCase; + use const PHP_VERSION_ID; class AggregateChangedTest extends TestCase diff --git a/tests/Unit/Pipeline/Target/InMemoryTargetTest.php b/tests/Unit/Pipeline/Target/InMemoryTargetTest.php index 67fc4273..5ff5930b 100644 --- a/tests/Unit/Pipeline/Target/InMemoryTargetTest.php +++ b/tests/Unit/Pipeline/Target/InMemoryTargetTest.php @@ -4,7 +4,6 @@ namespace Patchlevel\EventSourcing\Tests\Unit\Pipeline\Target; -use Patchlevel\EventSourcing\Aggregate\AggregateChanged; use Patchlevel\EventSourcing\Pipeline\EventBucket; use Patchlevel\EventSourcing\Pipeline\Target\InMemoryTarget; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Email; diff --git a/tests/Unit/Pipeline/Target/ProjectionTargetTest.php b/tests/Unit/Pipeline/Target/ProjectionTargetTest.php index 8fb48b2f..6e4584f7 100644 --- a/tests/Unit/Pipeline/Target/ProjectionTargetTest.php +++ b/tests/Unit/Pipeline/Target/ProjectionTargetTest.php @@ -28,7 +28,7 @@ public function testSave(): void ); $projectionRepository = $this->prophesize(Projection::class); - $projectionRepository->handledEvents()->will(fn() => yield ProfileCreated::class => 'applyProfileCreated'); + $projectionRepository->handledEvents()->will(static fn () => yield ProfileCreated::class => 'applyProfileCreated'); $projectionTarget = new ProjectionTarget($projectionRepository->reveal()); diff --git a/tests/Unit/Repository/RepositoryTest.php b/tests/Unit/Repository/RepositoryTest.php index 733f4279..9ad76672 100644 --- a/tests/Unit/Repository/RepositoryTest.php +++ b/tests/Unit/Repository/RepositoryTest.php @@ -39,6 +39,7 @@ public function testInstantiateWithWrongClass(): void stdClass::class, ); } + public function testInstantiateWithNonSnapshotAggregateButWithSnapshotStore(): void { $store = $this->prophesize(Store::class);