From dfa60e8f2a63489a9f1aa4163b6867ecf712642c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 18 Jan 2022 17:54:21 +0300 Subject: [PATCH] remove quantity test.. --- tests/Feature/Purchases/BillsTest.php | 18 ------------------ tests/Feature/Sales/InvoicesTest.php | 18 ------------------ 2 files changed, 36 deletions(-) diff --git a/tests/Feature/Purchases/BillsTest.php b/tests/Feature/Purchases/BillsTest.php index 68104ecac..279c58320 100644 --- a/tests/Feature/Purchases/BillsTest.php +++ b/tests/Feature/Purchases/BillsTest.php @@ -112,24 +112,6 @@ class BillsTest extends FeatureTestCase ]); } - public function testItShouldNotCreateBillWithNegativeQuantity() - { - $request = $this->getRequest(); - - $request['items'][0]['quantity'] = '-1'; - - $this->handleValidationExceptions(); - - $this->loginAs() - ->post(route('bills.store'), $request) - ->assertRedirect() - ->assertInvalid(['items.0.quantity']); - - $this->assertDatabaseMissing('documents', [ - 'document_number' => $request['document_number'], - ]); - } - public function testItShouldSeeBillUpdatePage() { $request = $this->getRequest(); diff --git a/tests/Feature/Sales/InvoicesTest.php b/tests/Feature/Sales/InvoicesTest.php index e645e483c..c5a1a439d 100644 --- a/tests/Feature/Sales/InvoicesTest.php +++ b/tests/Feature/Sales/InvoicesTest.php @@ -123,24 +123,6 @@ class InvoicesTest extends FeatureTestCase ]); } - public function testItShouldNotCreateInvoiceWithNegativeQuantity() - { - $request = $this->getRequest(); - - $request['items'][0]['quantity'] = '-1'; - - $this->handleValidationExceptions(); - - $this->loginAs() - ->post(route('invoices.store'), $request) - ->assertRedirect() - ->assertInvalid(['items.0.quantity']); - - $this->assertDatabaseMissing('documents', [ - 'document_number' => $request['document_number'], - ]); - } - public function testItShouldSeeInvoiceUpdatePage() { $request = $this->getRequest();