| @@ 26-43 (lines=18) @@ | ||
| 23 | /** |
|
| 24 | * @mixin OrganizationRepository |
|
| 25 | */ |
|
| 26 | class OrganizationRepositorySpec extends ObjectBehavior |
|
| 27 | { |
|
| 28 | function let(DocumentManagerInterface $documentManager, ClassMetadata $classMetadata) |
|
| 29 | { |
|
| 30 | $this->beConstructedWith($documentManager, $classMetadata); |
|
| 31 | } |
|
| 32 | ||
| 33 | function it_is_initializable() |
|
| 34 | { |
|
| 35 | $this->shouldHaveType(OrganizationRepository::class); |
|
| 36 | } |
|
| 37 | ||
| 38 | function it_is_a_repository() |
|
| 39 | { |
|
| 40 | $this->shouldHaveType(DocumentRepository::class); |
|
| 41 | $this->shouldImplement(OrganizationRepositoryInterface::class); |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 26-43 (lines=18) @@ | ||
| 23 | /** |
|
| 24 | * @mixin TenantRepository |
|
| 25 | */ |
|
| 26 | class TenantRepositorySpec extends ObjectBehavior |
|
| 27 | { |
|
| 28 | function let(DocumentManagerInterface $documentManager, ClassMetadata $classMetadata) |
|
| 29 | { |
|
| 30 | $this->beConstructedWith($documentManager, $classMetadata); |
|
| 31 | } |
|
| 32 | ||
| 33 | function it_is_initializable() |
|
| 34 | { |
|
| 35 | $this->shouldHaveType(TenantRepository::class); |
|
| 36 | } |
|
| 37 | ||
| 38 | function it_is_a_repository() |
|
| 39 | { |
|
| 40 | $this->shouldHaveType(DocumentRepository::class); |
|
| 41 | $this->shouldImplement(TenantRepositoryInterface::class); |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||