Compare commits
2 Commits
4500ce0c27
...
4eb94a736a
Author | SHA1 | Date | |
---|---|---|---|
4eb94a736a | |||
07c250eaac |
@ -12,7 +12,7 @@ public function up(): void
|
||||
$table->id();
|
||||
$table->foreignId('order_id')->constrained();
|
||||
$table->string('sku')->nullable();
|
||||
$table->string('product_name');
|
||||
$table->string('product_name')->nullable();
|
||||
$table->string('color')->nullable();
|
||||
|
||||
$table->softDeletes();
|
||||
|
0
tests/Feature/.placeholder
Normal file
0
tests/Feature/.placeholder
Normal file
@ -54,7 +54,7 @@
|
||||
->assertHasNoErrors();
|
||||
|
||||
$this->assertDatabaseHas('invoices', [
|
||||
'internal_id' => 'TN40001',
|
||||
'internal_id' => 'TN4001',
|
||||
'customer_id' => $formData['customer_id'],
|
||||
'status' => $formData['status'],
|
||||
'has_gst' => $formData['has_gst'],
|
||||
@ -65,7 +65,7 @@
|
||||
'hst_rate' => $hst_rate,
|
||||
]);
|
||||
|
||||
$invoice = Invoice::where('internal_id', 'TN40001')->firstOrFail();
|
||||
$invoice = Invoice::where('internal_id', 'TN4001')->firstOrFail();
|
||||
|
||||
$this->assertEquals($invoice->orders->isEmpty(), true);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user