Refatoring : Working state
This commit is contained in:
@@ -5,12 +5,12 @@ namespace Tests\Category;
|
||||
|
||||
use App\Category\Category;
|
||||
use App\Category\CategoryRepositoryInterface;
|
||||
use App\Category\Application\CategoryApplicationService as CategoryService;
|
||||
use App\Category\Application\CategoryApplicationService;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Tests unitaires pour CategoryService.
|
||||
* Tests unitaires pour CategoryApplicationService.
|
||||
*
|
||||
* Vérifie la création (génération de slug, unicité du nom, validation du modèle)
|
||||
* et la suppression (blocage si articles rattachés).
|
||||
@@ -22,12 +22,12 @@ final class CategoryServiceTest extends TestCase
|
||||
/** @var CategoryRepositoryInterface&MockObject */
|
||||
private CategoryRepositoryInterface $repository;
|
||||
|
||||
private CategoryService $service;
|
||||
private CategoryApplicationService $service;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->repository = $this->createMock(CategoryRepositoryInterface::class);
|
||||
$this->service = new CategoryService($this->repository);
|
||||
$this->service = new CategoryApplicationService($this->repository);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user