Minor changes

This commit is contained in:
julien
2026-03-22 12:51:14 +01:00
parent 365b0b08b5
commit 7f0c07b90f
12 changed files with 40 additions and 135 deletions

View File

@@ -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);

View File

@@ -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,