require full bid data on update
This commit is contained in:
parent
9e2e6d9449
commit
14e77d2885
4 changed files with 16 additions and 12 deletions
|
|
@ -19,12 +19,11 @@ class UpdateBidTest extends TestCase
|
|||
$useCase = new UpdateBid($bidRepo);
|
||||
$dto = new UpdateBidRequest(
|
||||
bidId: 0,
|
||||
data: [
|
||||
'isClosed' => true,
|
||||
'cost' => 1,
|
||||
'notes' => 'some notes',
|
||||
'fileAttachments' => ['/path/to/file']
|
||||
],
|
||||
isClosed: true,
|
||||
cost: 1,
|
||||
notes: 'some notes',
|
||||
fileAttachments: ['/path/to/file'],
|
||||
|
||||
);
|
||||
$useCase->execute($dto);
|
||||
$bid = $bidRepo->find(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue