From 4bb17019a43fa12a8dea7f0913925a2a2f347636 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 25 Jan 2015 13:17:32 +0100 Subject: [PATCH] Test transaction views for transactions without budgets and categories. --- tests/functional/BudgetControllerCest.php | 10 ++++++++++ tests/functional/CategoryControllerCest.php | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/tests/functional/BudgetControllerCest.php b/tests/functional/BudgetControllerCest.php index a81c7e0b33..35c97692e1 100644 --- a/tests/functional/BudgetControllerCest.php +++ b/tests/functional/BudgetControllerCest.php @@ -105,6 +105,16 @@ class BudgetControllerCest $I->see('Budgets'); } + /** + * @param FunctionalTester $I + */ + public function indexNoBudget(FunctionalTester $I) + { + $I->wantTo('see transactions without a budget'); + $I->amOnPage('/budgets/list/noBudget'); + $I->see('Transactions without a budget in'); + } + /** * @param FunctionalTester $I */ diff --git a/tests/functional/CategoryControllerCest.php b/tests/functional/CategoryControllerCest.php index 3a7b5d10ba..cef60dee22 100644 --- a/tests/functional/CategoryControllerCest.php +++ b/tests/functional/CategoryControllerCest.php @@ -86,6 +86,15 @@ class CategoryControllerCest $I->wantTo('show all categories'); $I->amOnPage('/categories'); } + /** + * @param FunctionalTester $I + */ + public function indexNoCategory(FunctionalTester $I) + { + $I->wantTo('see transactions without a category'); + $I->amOnPage('/categories/list/noCategory'); + $I->see('Transactions without a category in'); + } /** * @param FunctionalTester $I