mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 05:56:11 +01:00

[CLEANUP] Make a type annotation in a unit test more specific (#435)

This helps static code analysis.
This commit is contained in:
Oliver Klee 2022-04-20 15:05:45 +02:00 committed by GitHub
parent 2e31910c61
commit 62e8c21596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace TTN\Tea\Tests\Unit\Controller; namespace TTN\Tea\Tests\Unit\Controller;
use PHPUnit\Framework\MockObject\MockObject;
use Prophecy\Prophecy\ObjectProphecy; use Prophecy\Prophecy\ObjectProphecy;
use Prophecy\Prophecy\ProphecySubjectInterface; use Prophecy\Prophecy\ProphecySubjectInterface;
use TTN\Tea\Controller\TeaController; use TTN\Tea\Controller\TeaController;
@ -12,6 +13,7 @@ use TTN\Tea\Domain\Repository\Product\TeaRepository;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Persistence\QueryResultInterface; use TYPO3\CMS\Extbase\Persistence\QueryResultInterface;
use TYPO3\CMS\Fluid\View\TemplateView; use TYPO3\CMS\Fluid\View\TemplateView;
use TYPO3\TestingFramework\Core\AccessibleObjectInterface;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
/** /**
@ -20,7 +22,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
class TeaControllerTest extends UnitTestCase class TeaControllerTest extends UnitTestCase
{ {
/** /**
* @var TeaController * @var TeaController&MockObject&AccessibleObjectInterface
*/ */
private $subject; private $subject;