From 3643842fee25b3b2d4b87c77a9c07c3ee0ac2eba Mon Sep 17 00:00:00 2001 From: cv65kr Date: Sat, 15 Feb 2020 21:43:37 +0100 Subject: [PATCH 1/2] Aggregate root id tests --- tests/Aggregate/AggregateRootIdTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Aggregate/AggregateRootIdTest.php b/tests/Aggregate/AggregateRootIdTest.php index bc966bd..378c91a 100644 --- a/tests/Aggregate/AggregateRootIdTest.php +++ b/tests/Aggregate/AggregateRootIdTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\TestCase; use Ramsey\Uuid\Uuid; +use Ramsey\Uuid\UuidInterface; class AggregateRootIdTest extends TestCase { @@ -18,4 +19,14 @@ public function testConvertFromUUID(): void self::assertSame($uuidString, (string) $result); } + + public function testConvertToUUID(): void + { + self::assertInstanceOf(UuidInterface::class, AggregateRootId::generate()->toUUID()); + } + + public function testToString(): void + { + self::assertIsString((string) AggregateRootId::generate()); + } } \ No newline at end of file From 067a31b495cd3d1a165864290c6ca840ad0e0266 Mon Sep 17 00:00:00 2001 From: cv65kr Date: Sat, 15 Feb 2020 21:47:29 +0100 Subject: [PATCH 2/2] Github actions --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9e5b91..db86d4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,6 @@ name: CI on: - push: ~ pull_request: branches: - master