mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-10-19 13:36:16 +02:00
42 lines
1 KiB
PHP
42 lines
1 KiB
PHP
<?php
|
|
declare(strict_types = 1);
|
|
namespace OliverKlee\Tea\Tests\Unit\Domain\Repository\Product;
|
|
|
|
use Nimut\TestingFramework\TestCase\UnitTestCase;
|
|
use OliverKlee\Tea\Domain\Repository\Product\TeaRepository;
|
|
use Prophecy\Prophecy\ProphecySubjectInterface;
|
|
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
|
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
|
|
|
/**
|
|
* Test case.
|
|
*
|
|
* @author Oliver Klee <typo3-coding@oliverklee.de
|
|
*/
|
|
class TeaRepositoryTest extends UnitTestCase
|
|
{
|
|
/**
|
|
* @var TeaRepository
|
|
*/
|
|
private $subject = null;
|
|
|
|
/**
|
|
* @var ObjectManagerInterface|ProphecySubjectInterface
|
|
*/
|
|
protected $objectManager = null;
|
|
|
|
protected function setUp()
|
|
{
|
|
$objectManagerProphecy = $this->prophesize(ObjectManagerInterface::class);
|
|
$this->objectManager = $objectManagerProphecy->reveal();
|
|
$this->subject = new TeaRepository($this->objectManager);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function isRepository()
|
|
{
|
|
static::assertInstanceOf(Repository::class, $this->subject);
|
|
}
|
|
}
|