for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Superdesk Web Publisher MultiTenancy Bundle.
*
* Copyright 2016 Sourcefabric z.ú. and contributors.
* For the full copyright and license information, please see the
* AUTHORS and LICENSE files distributed with this source code.
* @copyright 2016 Sourcefabric z.ú
* @license http://www.superdesk.org/license
*/
namespace spec\SWP\Bundle\MultiTenancyBundle\Doctrine\ORM;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use PhpSpec\ObjectBehavior;
use SWP\Bundle\MultiTenancyBundle\Doctrine\ORM\TenantRepository;
use SWP\Bundle\StorageBundle\Doctrine\ORM\EntityRepository;
use SWP\Component\MultiTenancy\Repository\TenantRepositoryInterface;
/**
* @mixin TenantRepository
class TenantRepositorySpec extends ObjectBehavior
{
public function let(EntityManagerInterface $entityManager, ClassMetadata $classMetadata)
$this->beConstructedWith($entityManager, $classMetadata);
}
public function it_is_initializable()
$this->shouldHaveType(TenantRepository::class);
public function it_is_a_repository()
$this->shouldHaveType(EntityRepository::class);
$this->shouldImplement(TenantRepositoryInterface::class);