v2 first commit
This commit is contained in:
@ -27,8 +27,7 @@ class CategoriesTest extends FeatureTestCase
|
||||
{
|
||||
$this->loginAs()
|
||||
->post(route('categories.store'), $this->getCategoryRequest())
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('categories.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
@ -53,8 +52,7 @@ class CategoriesTest extends FeatureTestCase
|
||||
|
||||
$this->loginAs()
|
||||
->patch(route('categories.update', $category->id), $request)
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('categories.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
@ -65,8 +63,7 @@ class CategoriesTest extends FeatureTestCase
|
||||
|
||||
$this->loginAs()
|
||||
->delete(route('categories.destroy', $category->id))
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('categories.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
|
@ -27,8 +27,7 @@ class CurrenciesTest extends FeatureTestCase
|
||||
{
|
||||
$this->loginAs()
|
||||
->post(route('currencies.store'), $this->getCurrencyRequest())
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('currencies.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
@ -43,8 +42,7 @@ class CurrenciesTest extends FeatureTestCase
|
||||
|
||||
$this->loginAs()
|
||||
->patch(route('currencies.update', $currency->id), $request)
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('currencies.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
@ -55,8 +53,7 @@ class CurrenciesTest extends FeatureTestCase
|
||||
|
||||
$this->loginAs()
|
||||
->delete(route('currencies.destroy', $currency->id))
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('currencies.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
|
@ -27,8 +27,7 @@ class TaxesTest extends FeatureTestCase
|
||||
{
|
||||
$this->loginAs()
|
||||
->post(route('taxes.store'), $this->getTaxRequest())
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('taxes.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
@ -43,8 +42,7 @@ class TaxesTest extends FeatureTestCase
|
||||
|
||||
$this->loginAs()
|
||||
->patch(route('taxes.update', $tax->id), $request)
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('taxes.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
@ -55,8 +53,7 @@ class TaxesTest extends FeatureTestCase
|
||||
|
||||
$this->loginAs()
|
||||
->delete(route('taxes.destroy', $tax->id))
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('taxes.index'));
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertFlashLevel('success');
|
||||
}
|
||||
|
Reference in New Issue
Block a user