mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests:
This commit is contained in:
parent
597abfa584
commit
3539c6b372
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user