Minor changes
This commit is contained in:
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\Post;
|
||||
|
||||
use App\Post\Application\PostServiceInterface;
|
||||
use App\Post\Application\PostApplicationService;
|
||||
use App\Post\Domain\Entity\Post;
|
||||
use App\Post\UI\Http\PostController;
|
||||
use Netig\Netslim\AuditLog\Contracts\AuditLoggerInterface;
|
||||
@@ -39,8 +39,8 @@ final class PostControllerTest extends ControllerTestBase
|
||||
/** @var \Slim\Views\Twig&MockObject */
|
||||
private \Slim\Views\Twig $view;
|
||||
|
||||
/** @var PostServiceInterface&MockObject */
|
||||
private PostServiceInterface $postService;
|
||||
/** @var PostApplicationService&MockObject */
|
||||
private PostApplicationService $postService;
|
||||
|
||||
/** @var TaxonomyReaderInterface&MockObject */
|
||||
private TaxonomyReaderInterface $taxonomyReader;
|
||||
@@ -65,7 +65,7 @@ final class PostControllerTest extends ControllerTestBase
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->view = $this->makeTwigMock();
|
||||
$this->postService = $this->createMock(PostServiceInterface::class);
|
||||
$this->postService = $this->createMock(PostApplicationService::class);
|
||||
$this->taxonomyReader = $this->createMock(TaxonomyReaderInterface::class);
|
||||
$this->settings = $this->createMock(SettingsReaderInterface::class);
|
||||
$this->authorization = $this->createMock(AuthorizationServiceInterface::class);
|
||||
|
||||
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\Post;
|
||||
|
||||
use App\Post\Application\PostServiceInterface;
|
||||
use App\Post\Application\PostApplicationService;
|
||||
use App\Post\Domain\Entity\Post;
|
||||
use App\Post\UI\Http\RssController;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
@@ -23,8 +23,8 @@ use Tests\ControllerTestBase;
|
||||
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
|
||||
final class RssControllerTest extends ControllerTestBase
|
||||
{
|
||||
/** @var PostServiceInterface&MockObject */
|
||||
private PostServiceInterface $postService;
|
||||
/** @var PostApplicationService&MockObject */
|
||||
private PostApplicationService $postService;
|
||||
|
||||
private RssController $controller;
|
||||
|
||||
@@ -33,7 +33,7 @@ final class RssControllerTest extends ControllerTestBase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->postService = $this->createMock(PostServiceInterface::class);
|
||||
$this->postService = $this->createMock(PostApplicationService::class);
|
||||
|
||||
$this->controller = new RssController(
|
||||
$this->postService,
|
||||
|
||||
Reference in New Issue
Block a user