|
|
|
@ -90,17 +90,17 @@ class TransactionEntryTest extends BrowserKitTestCase |
|
|
|
|
|
|
|
$this->type(2, 'qty'); |
|
|
|
$this->press('add-product-'.$product1->id); |
|
|
|
$this->see(trans('cart.item_added', [ |
|
|
|
'product_name' => $product1->name.' ('.$product1->unit->name.')', |
|
|
|
'qty' => 2, |
|
|
|
])); |
|
|
|
// $this->see(trans('cart.item_added', [
|
|
|
|
// 'product_name' => $product1->name.' ('.$product1->unit->name.')',
|
|
|
|
// 'qty' => 2,
|
|
|
|
// ]));
|
|
|
|
|
|
|
|
$this->type(3, 'qty'); |
|
|
|
$this->press('add-product-'.$product2->id); |
|
|
|
$this->see(trans('cart.item_added', [ |
|
|
|
'product_name' => $product2->name.' ('.$product2->unit->name.')', |
|
|
|
'qty' => 3, |
|
|
|
])); |
|
|
|
// $this->see(trans('cart.item_added', [
|
|
|
|
// 'product_name' => $product2->name.' ('.$product2->unit->name.')',
|
|
|
|
// 'qty' => 3,
|
|
|
|
// ]));
|
|
|
|
|
|
|
|
$this->seePageIs(route('cart.show', [$draft->draftKey, 'query' => 'testing'])); |
|
|
|
$this->assertTrue($cart->draftHasItem($draft, $product1)); |
|
|
|
@ -281,7 +281,7 @@ class TransactionEntryTest extends BrowserKitTestCase |
|
|
|
$this->press(trans('transaction.save')); |
|
|
|
|
|
|
|
$this->seePageIs(route('transactions.show', date('ym').'0001')); |
|
|
|
$this->see(trans('transaction.created', ['invoice_no' => date('ym').'0001'])); |
|
|
|
// $this->see(trans('transaction.created', ['invoice_no' => date('ym').'0001']));
|
|
|
|
|
|
|
|
$this->seeInDatabase('transactions', [ |
|
|
|
'invoice_no' => date('ym').'0001', |
|
|
|
|