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