Skip to content

Commit

Permalink
Merge pull request #2 from cv65kr/tests/pr
Browse files Browse the repository at this point in the history
Tests/pr
  • Loading branch information
cv65kr authored Feb 15, 2020
2 parents 8bcaf6b + 067a31b commit aec7ea5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CI

on:
push: ~
pull_request:
branches:
- master
Expand Down
11 changes: 11 additions & 0 deletions tests/Aggregate/AggregateRootIdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\TestCase;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;

class AggregateRootIdTest extends TestCase
{
Expand All @@ -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());
}
}

0 comments on commit aec7ea5

Please sign in to comment.