Test code cleanup.

This commit is contained in:
James Cole
2016-01-24 18:05:04 +01:00
parent 610f782054
commit 7b2fe8eb4a
11 changed files with 32 additions and 66 deletions

View File

@@ -42,10 +42,7 @@ class BillControllerTest extends TestCase
{
$this->session(['bills.delete.url' => 'http://localhost']);
$this->be($this->user());
$args = [
'_token' => Session::token(),
];
$response = $this->call('POST', '/bills/destroy/2', $args);
$response = $this->call('POST', '/bills/destroy/2');
$this->assertSessionHas('success');
$this->assertEquals(302, $response->status());
}
@@ -100,7 +97,6 @@ class BillControllerTest extends TestCase
$args = [
'name' => 'Some test',
'match' => 'words',
'_token' => Session::token(),
'amount_min' => 10,
'amount_max' => 100,
'amount_currency_id_amount_min' => 1,
@@ -127,7 +123,6 @@ class BillControllerTest extends TestCase
'id' => 1,
'name' => 'Some test',
'match' => 'words',
'_token' => Session::token(),
'amount_min' => 10,
'amount_max' => 100,
'amount_currency_id_amount_min' => 1,