test(constructeur) : update test helpers and MCP tests for ConstructeurLinks

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-31 14:30:46 +02:00
parent 691f632be0
commit 34b0d9225c
5 changed files with 56 additions and 12 deletions

View File

@@ -30,9 +30,7 @@ class MachinesCrudToolTest extends AbstractApiTestCase
$constructeur = $this->createConstructeur(name: 'Fournisseur M');
$machine = $this->createMachine(name: 'Machine Gamma', site: $site, reference: 'REF-M001');
// Add constructeur to machine
$machine->addConstructeur($constructeur);
$this->getEntityManager()->flush();
$this->createMachineConstructeurLink($machine, $constructeur);
$session = $this->createMcpClient('ROLE_VIEWER');