Update some tests.

This commit is contained in:
James Cole
2017-01-20 16:22:19 +01:00
parent 0d1d360d18
commit 8f2b898b2b
3 changed files with 129 additions and 24 deletions

View File

@@ -106,29 +106,6 @@ class SingleControllerTest extends TestCase
$this->assertSessionHas('success');
}
/**
* @covers \FireflyIII\Http\Controllers\Transaction\SingleController::store
* @dataProvider naughtyStringProvider
*/
public function testStoreNaughty(string $description)
{
$this->session(['transactions.create.url' => 'http://localhost']);
$this->be($this->user());
$data = [
'what' => 'withdrawal',
'amount' => '10',
'amount_currency_id_amount' => 1,
'source_account_id' => 1,
'destination_account_name' => 'Some destination',
'date' => '2016-01-01',
'description' => $description,
];
$response = $this->call('post', route('transactions.store', ['withdrawal']), $data);
$this->assertNotEquals($response->getStatusCode(), 500);
}
/**
* @covers \FireflyIII\Http\Controllers\Transaction\SingleController::update
*/
@@ -161,5 +138,4 @@ class SingleControllerTest extends TestCase
$this->see('<ol class="breadcrumb">');
}
}