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

@@ -38,14 +38,8 @@ class AccountControllerTest extends TestCase
public function testDestroy()
{
$this->be($this->user());
$args = [
'_token' => Session::token(),
];
$this->session(['accounts.delete.url' => 'http://localhost']);
$response = $this->call('POST', '/accounts/destroy/6', $args);
$response = $this->call('POST', '/accounts/destroy/6');
$this->assertSessionHas('success');
$this->assertEquals(302, $response->status());
}
@@ -89,7 +83,6 @@ class AccountControllerTest extends TestCase
$this->be($this->user());
$this->session(['accounts.create.url' => 'http://localhost']);
$args = [
'_token' => Session::token(),
'name' => 'Some kind of test account.',
'what' => 'asset',
'amount_currency_id_virtualBalance' => 1,
@@ -112,7 +105,6 @@ class AccountControllerTest extends TestCase
'id' => 1,
'name' => 'TestData new name',
'active' => 1,
'_token' => Session ::token(),
];
$this->be($this->user());