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 PiecesCrudToolTest extends AbstractApiTestCase
$modelType = $this->createModelType(name: 'Type Piece', code: 'TP-001', category: ModelCategory::PIECE);
$piece = $this->createPiece(name: 'Piece Gamma', reference: 'REF-001', type: $modelType);
// Add constructeur to piece
$piece->addConstructeur($constructeur);
$this->getEntityManager()->flush();
$this->createPieceConstructeurLink($piece, $constructeur);
$session = $this->createMcpClient('ROLE_VIEWER');