remove quantity test..
This commit is contained in:
parent
63c31ffc0f
commit
dfa60e8f2a
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user