Code cleanup.

This commit is contained in:
James Cole
2015-02-11 07:35:10 +01:00
parent ca504965f9
commit 7785ec0222
97 changed files with 1308 additions and 651 deletions

View File

@@ -23,6 +23,9 @@ class TransactionControllerCest
$I->amLoggedAs(['email' => 'thegrumpydictator@gmail.com', 'password' => 'james']);
}
/**
* @param FunctionalTester $I
*/
public function create(FunctionalTester $I)
{
$I->wantTo('create a transaction');
@@ -30,6 +33,9 @@ class TransactionControllerCest
$I->see('Add a new withdrawal');
}
/**
* @param FunctionalTester $I
*/
public function deleteWithdrawal(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -42,6 +48,9 @@ class TransactionControllerCest
$I->see('Delete withdrawal "' . $journal->description . '"');
}
/**
* @param FunctionalTester $I
*/
public function destroyDeposit(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -56,6 +65,9 @@ class TransactionControllerCest
}
/**
* @param FunctionalTester $I
*/
public function destroyTransfer(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -72,6 +84,9 @@ class TransactionControllerCest
}
/**
* @param FunctionalTester $I
*/
public function destroyTransferWithEvent(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -87,6 +102,9 @@ class TransactionControllerCest
}
/**
* @param FunctionalTester $I
*/
public function destroyWithdrawal(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -102,6 +120,9 @@ class TransactionControllerCest
}
/**
* @param FunctionalTester $I
*/
public function edit(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -115,6 +136,9 @@ class TransactionControllerCest
$I->see('Edit transfer "' . $journal->description . '"');
}
/**
* @param FunctionalTester $I
*/
public function index(FunctionalTester $I)
{
$I->wantTo('see all withdrawals');
@@ -122,6 +146,9 @@ class TransactionControllerCest
$I->see('Expenses');
}
/**
* @param FunctionalTester $I
*/
public function indexExpenses(FunctionalTester $I)
{
$I->wantTo('see all expenses');
@@ -129,6 +156,9 @@ class TransactionControllerCest
$I->see('Revenue, income and deposits');
}
/**
* @param FunctionalTester $I
*/
public function indexTransfers(FunctionalTester $I)
{
$I->wantTo('see all transfers');
@@ -136,6 +166,9 @@ class TransactionControllerCest
$I->see('Transfers');
}
/**
* @param FunctionalTester $I
*/
public function show(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -168,6 +201,9 @@ class TransactionControllerCest
$I->see($journal->description);
}
/**
* @param FunctionalTester $I
*/
public function store(FunctionalTester $I)
{
$I->wantTo('store a transaction');
@@ -188,6 +224,9 @@ class TransactionControllerCest
$I->see('Transaction "Test" stored.');
}
/**
* @param FunctionalTester $I
*/
public function storeAndFail(FunctionalTester $I)
{
$I->wantTo('store a transaction and fail');
@@ -208,6 +247,9 @@ class TransactionControllerCest
$I->see('Could not store transaction: The description field is required.');
}
/**
* @param FunctionalTester $I
*/
public function storeAndReturn(FunctionalTester $I)
{
$I->wantTo('store a transaction');
@@ -228,6 +270,9 @@ class TransactionControllerCest
$I->see('Transaction "Test" stored.');
}
/**
* @param FunctionalTester $I
*/
public function storeValidate(FunctionalTester $I)
{
$I->wantTo('validate a transaction');
@@ -250,6 +295,9 @@ class TransactionControllerCest
$I->dontSeeRecord('transaction_journals', ['description' => 'TestValidateMe']);
}
/**
* @param FunctionalTester $I
*/
public function update(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -276,6 +324,9 @@ class TransactionControllerCest
$I->see($journal->description . '!');
}
/**
* @param FunctionalTester $I
*/
public function updateAndFail(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -302,6 +353,9 @@ class TransactionControllerCest
$I->see('Could not update transaction: The description field is required.');
}
/**
* @param FunctionalTester $I
*/
public function updateAndReturn(FunctionalTester $I)
{
// get withdrawal transaction type id:
@@ -327,6 +381,9 @@ class TransactionControllerCest
$I->see($journal->description . '!');
}
/**
* @param FunctionalTester $I
*/
public function updateValidate(FunctionalTester $I)
{
// get withdrawal transaction type id: