mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-10-19 05:36:12 +02:00
074ecf6cbd
Also re-generate the baseline, and update a type annotation to match what the current version of jangregor/phpstan-prophecy now recognizes.
40 lines
913 B
PHP
40 lines
913 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace TTN\Tea\Tests\Unit\Domain\Repository\Product;
|
|
|
|
use Nimut\TestingFramework\TestCase\UnitTestCase;
|
|
use TTN\Tea\Domain\Repository\Product\TeaRepository;
|
|
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
|
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
|
|
|
/**
|
|
* @covers \TTN\Tea\Domain\Repository\Product\TeaRepository
|
|
*/
|
|
class TeaRepositoryTest extends UnitTestCase
|
|
{
|
|
/**
|
|
* @var TeaRepository
|
|
*/
|
|
private $subject;
|
|
|
|
/**
|
|
* @var ObjectManagerInterface
|
|
*/
|
|
protected $objectManager;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
$this->objectManager = $this->prophesize(ObjectManagerInterface::class)->reveal();
|
|
$this->subject = new TeaRepository($this->objectManager);
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function isRepository(): void
|
|
{
|
|
self::assertInstanceOf(Repository::class, $this->subject);
|
|
}
|
|
}
|