mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Renaming of Databox{,Field}Repository
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
*/
|
||||
namespace Alchemy\Tests\Phrasea\Databox;
|
||||
|
||||
use Alchemy\Phrasea\Databox\CachedDataboxRepository;
|
||||
use Alchemy\Phrasea\Databox\CachingDataboxRepositoryDecorator;
|
||||
use Alchemy\Phrasea\Databox\DataboxFactory;
|
||||
use Alchemy\Phrasea\Databox\DataboxRepositoryInterface;
|
||||
use Alchemy\Phrasea\Databox\DataboxRepository;
|
||||
use Doctrine\Common\Cache\Cache;
|
||||
use Prophecy\Argument;
|
||||
use Prophecy\Prophecy\ObjectProphecy;
|
||||
@@ -26,16 +26,16 @@ final class CachedDataboxRepositoryTest extends \PHPUnit_Framework_TestCase
|
||||
/** @var ObjectProphecy */
|
||||
private $repository;
|
||||
|
||||
/** @var CachedDataboxRepository */
|
||||
/** @var CachingDataboxRepositoryDecorator */
|
||||
private $sut;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->cache = $this->prophesize(Cache::class);
|
||||
$this->repository = $this->prophesize(DataboxRepositoryInterface::class);
|
||||
$this->repository = $this->prophesize(DataboxRepository::class);
|
||||
$this->factory = $this->prophesize(DataboxFactory::class);
|
||||
|
||||
$this->sut = new CachedDataboxRepository(
|
||||
$this->sut = new CachingDataboxRepositoryDecorator(
|
||||
$this->repository->reveal(),
|
||||
$this->cache->reveal(),
|
||||
$this->cacheKey,
|
||||
@@ -45,7 +45,7 @@ final class CachedDataboxRepositoryTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testItImplementsDataboxRepositoryInterface()
|
||||
{
|
||||
$this->assertInstanceOf(DataboxRepositoryInterface::class, $this->sut);
|
||||
$this->assertInstanceOf(DataboxRepository::class, $this->sut);
|
||||
}
|
||||
|
||||
public function testItFindsASpecificDataboxWhenNotInCache()
|
||||
|
@@ -10,7 +10,7 @@
|
||||
namespace Alchemy\Tests\Phrasea\Databox;
|
||||
|
||||
use Alchemy\Phrasea\Databox\DataboxFactory;
|
||||
use Alchemy\Phrasea\Databox\DataboxRepositoryInterface;
|
||||
use Alchemy\Phrasea\Databox\DataboxRepository;
|
||||
use Alchemy\Phrasea\Databox\DbalDataboxRepository;
|
||||
use Doctrine\DBAL\Connection;
|
||||
use Doctrine\DBAL\Driver\Statement;
|
||||
@@ -36,7 +36,7 @@ final class DbalDataboxRepositoryTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testItImplementsDataboxRepositoryInterface()
|
||||
{
|
||||
$this->assertInstanceOf(DataboxRepositoryInterface::class, $this->sut);
|
||||
$this->assertInstanceOf(DataboxRepository::class, $this->sut);
|
||||
}
|
||||
|
||||
public function testItFindsDataboxProperly()
|
||||
|
Reference in New Issue
Block a user