Add some tests.

This commit is contained in:
James Cole
2014-12-15 20:24:19 +01:00
parent e7d3716549
commit 37c63bc6b5
4 changed files with 21 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
<?php
use Carbon\Carbon;
/**
* @SuppressWarnings("CamelCase")
@@ -52,6 +51,12 @@ class AccountControllerCest
public function destroy(FunctionalTester $I)
{
$I->wantTo('destroy an asset account');
$I->amOnPage('/accounts/delete/3');
$I->see('Delete account "Delete me"');
$I->submitForm('#destroy', []);
// TODO I dont believe this actually works.
$I->dontSeeRecord('accounts', ['id' => 3, 'deleted_at' => null]);
resetToClean::clean();
}
/**