Fixes for tests:

This commit is contained in:
David Bomba 2023-09-12 11:03:19 +10:00
parent 597abfa584
commit 3539c6b372

View File

@ -74,19 +74,19 @@ class QuoteTest extends TestCase
'line_items' =>[ 'line_items' =>[
[ [
'type_id' => 2, 'type_id' => 2,
'unit_cost' => 200, 'cost' => 200,
'quantity' => 2, 'quantity' => 2,
'notes' => 'Test200', 'notes' => 'Test200',
], ],
[ [
'type_id' => 2, 'type_id' => 2,
'unit_cost' => 100, 'cost' => 100,
'quantity' => 1, 'quantity' => 1,
'notes' => 'Test100', 'notes' => 'Test100',
], ],
[ [
'type_id' => 1, 'type_id' => 1,
'unit_cost' => 10, 'cost' => 10,
'quantity' => 1, 'quantity' => 1,
'notes' => 'Test', 'notes' => 'Test',
], ],
@ -171,7 +171,7 @@ class QuoteTest extends TestCase
$project = Project::find($this->decodePrimaryKey($res['data'][0]['project_id'])); $project = Project::find($this->decodePrimaryKey($res['data'][0]['project_id']));
$this->assertEquals($project->name, ctrans('texts.quote_number_short') . " " . $this->quote->number); $this->assertEquals($project->name, ctrans('texts.quote_number_short') . " " . $this->quote->number."[{$this->quote->client->present()->name()}]");
} }
public function testQuoteList() public function testQuoteList()