From a05c8ca35151f21537a60136e46a4da387267e54 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 6 Dec 2016 09:16:36 +0100 Subject: [PATCH] New test files. --- .../Controllers/AccountControllerTest.php | 11 +++++- .../Admin/ConfigurationControllerTest.php | 12 ++++++- .../Admin/DomainControllerTest.php | 12 ++++++- .../Controllers/Admin/HomeControllerTest.php | 12 ++++++- .../Controllers/Admin/UserControllerTest.php | 12 ++++++- .../Controllers/AttachmentControllerTest.php | 11 +++++- .../Auth/ConfirmationControllerTest.php | 12 ++++++- .../Auth/ForgotPasswordControllerTest.php | 12 ++++++- .../Controllers/Auth/LoginControllerTest.php | 12 ++++++- .../Auth/PasswordControllerTest.php | 12 ++++++- .../Auth/RegisterControllerTest.php | 12 ++++++- .../Auth/ResetPasswordControllerTest.php | 12 ++++++- .../Auth/TwoFactorControllerTest.php | 12 ++++++- .../Controllers/BillControllerTest.php | 11 +++++- .../Controllers/BudgetControllerTest.php | 17 ++++++--- .../Controllers/CategoryControllerTest.php | 17 ++++++--- .../Chart/AccountControllerTest.php | 30 ++++++++++------ .../Controllers/Chart/BillControllerTest.php | 12 ++++++- .../Chart/BudgetControllerTest.php | 24 ++++++++++++- .../Chart/CategoryControllerTest.php | 24 ++++++++++++- .../Chart/CategoryReportControllerTest.php | 12 ++++++- .../Chart/PiggyBankControllerTest.php | 12 ++++++- .../Chart/ReportControllerTest.php | 24 +++++++++---- .../acceptance/Controllers/ControllerTest.php | 11 +++++- .../Controllers/CurrencyControllerTest.php | 11 +++++- .../Controllers/ExportControllerTest.php | 11 +++++- .../Controllers/HelpControllerTest.php | 11 +++++- .../Controllers/ImportControllerTest.php | 11 +++++- .../Controllers/JsonControllerTest.php | 11 +++++- .../Controllers/NewUserControllerTest.php | 11 +++++- .../Controllers/PiggyBankControllerTest.php | 11 +++++- .../Popup/ReportControllerTest.php | 18 +++++++--- .../Controllers/PreferencesControllerTest.php | 11 +++++- .../Controllers/ProfileControllerTest.php | 11 +++++- .../Report/AccountControllerTest.php | 18 +++++++--- .../Report/BalanceControllerTest.php | 18 +++++++--- .../Report/BudgetControllerTest.php | 24 +++++++++---- .../Report/CategoryControllerTest.php | 36 +++++++++++++++---- ...rTest.php => OperationsControllerTest.php} | 32 +++++++++++------ .../Controllers/ReportControllerTest.php | 11 +++++- .../Controllers/RuleControllerTest.php | 11 +++++- .../Controllers/RuleGroupControllerTest.php | 11 +++++- .../Controllers/SearchControllerTest.php | 11 +++++- .../Controllers/TagControllerTest.php | 11 +++++- .../Transaction/ConvertControllerTest.php | 24 +++++++++---- .../Transaction/MassControllerTest.php | 12 ++++++- .../Transaction/SingleControllerTest.php | 12 ++++++- .../Transaction/SplitControllerTest.php | 12 ++++++- .../Controllers/TransactionControllerTest.php | 17 ++++++--- 49 files changed, 615 insertions(+), 110 deletions(-) rename tests/acceptance/Controllers/Report/{InOutControllerTest.php => OperationsControllerTest.php} (55%) diff --git a/tests/acceptance/Controllers/AccountControllerTest.php b/tests/acceptance/Controllers/AccountControllerTest.php index b7c59f0868..adf72e3645 100644 --- a/tests/acceptance/Controllers/AccountControllerTest.php +++ b/tests/acceptance/Controllers/AccountControllerTest.php @@ -1,4 +1,13 @@ be($this->user()); $this->changeDateRange($this->user(), $range); diff --git a/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php b/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php index f26a87346a..ba2cb9b48d 100644 --- a/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php +++ b/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( diff --git a/tests/acceptance/Controllers/CategoryControllerTest.php b/tests/acceptance/Controllers/CategoryControllerTest.php index 81ed138644..7af66d728b 100644 --- a/tests/acceptance/Controllers/CategoryControllerTest.php +++ b/tests/acceptance/Controllers/CategoryControllerTest.php @@ -1,8 +1,17 @@ markTestIncomplete( diff --git a/tests/acceptance/Controllers/Chart/AccountControllerTest.php b/tests/acceptance/Controllers/Chart/AccountControllerTest.php index e231c341b0..b7b9cd9f26 100644 --- a/tests/acceptance/Controllers/Chart/AccountControllerTest.php +++ b/tests/acceptance/Controllers/Chart/AccountControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( @@ -44,10 +54,10 @@ class AccountControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Chart\AccountController::expenseByCategory - * Implement testExpenseByCategory(). + * @covers FireflyIII\Http\Controllers\Chart\AccountController::expenseCategory + * Implement testExpenseCategory(). */ - public function testExpenseByCategory() + public function testExpenseCategory() { // Remove the following lines when you implement this test. $this->markTestIncomplete( @@ -68,10 +78,10 @@ class AccountControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Chart\AccountController::incomeByCategory - * Implement testIncomeByCategory(). + * @covers FireflyIII\Http\Controllers\Chart\AccountController::incomeCategory + * Implement testIncomeCategory(). */ - public function testIncomeByCategory() + public function testIncomeCategory() { // Remove the following lines when you implement this test. $this->markTestIncomplete( diff --git a/tests/acceptance/Controllers/Chart/BillControllerTest.php b/tests/acceptance/Controllers/Chart/BillControllerTest.php index 7c8e5c5e81..648c913371 100644 --- a/tests/acceptance/Controllers/Chart/BillControllerTest.php +++ b/tests/acceptance/Controllers/Chart/BillControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. diff --git a/tests/acceptance/Controllers/Chart/CategoryControllerTest.php b/tests/acceptance/Controllers/Chart/CategoryControllerTest.php index 164c4995d1..7a5d32c32b 100644 --- a/tests/acceptance/Controllers/Chart/CategoryControllerTest.php +++ b/tests/acceptance/Controllers/Chart/CategoryControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + /** * @covers FireflyIII\Http\Controllers\Chart\CategoryController::specificPeriod * Implement testSpecificPeriod(). diff --git a/tests/acceptance/Controllers/Chart/CategoryReportControllerTest.php b/tests/acceptance/Controllers/Chart/CategoryReportControllerTest.php index 3b6f57f9b8..1852b7df3c 100644 --- a/tests/acceptance/Controllers/Chart/CategoryReportControllerTest.php +++ b/tests/acceptance/Controllers/Chart/CategoryReportControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( @@ -44,10 +54,10 @@ class ReportControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized - * Implement testYearInOutSummarized(). + * @covers FireflyIII\Http\Controllers\Chart\ReportController::sum + * Implement testSum(). */ - public function testYearInOutSummarized() + public function testSum() { // Remove the following lines when you implement this test. $this->markTestIncomplete( diff --git a/tests/acceptance/Controllers/ControllerTest.php b/tests/acceptance/Controllers/ControllerTest.php index 3e6c213205..69ba970d17 100644 --- a/tests/acceptance/Controllers/ControllerTest.php +++ b/tests/acceptance/Controllers/ControllerTest.php @@ -1,8 +1,17 @@ markTestIncomplete( diff --git a/tests/acceptance/Controllers/PreferencesControllerTest.php b/tests/acceptance/Controllers/PreferencesControllerTest.php index 9d3048036b..8601e1f46d 100644 --- a/tests/acceptance/Controllers/PreferencesControllerTest.php +++ b/tests/acceptance/Controllers/PreferencesControllerTest.php @@ -1,8 +1,17 @@ markTestIncomplete( diff --git a/tests/acceptance/Controllers/Report/BalanceControllerTest.php b/tests/acceptance/Controllers/Report/BalanceControllerTest.php index fcae91dc8d..0bc2c214d4 100644 --- a/tests/acceptance/Controllers/Report/BalanceControllerTest.php +++ b/tests/acceptance/Controllers/Report/BalanceControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( diff --git a/tests/acceptance/Controllers/Report/BudgetControllerTest.php b/tests/acceptance/Controllers/Report/BudgetControllerTest.php index adc7c4c49b..68dfcbd216 100644 --- a/tests/acceptance/Controllers/Report/BudgetControllerTest.php +++ b/tests/acceptance/Controllers/Report/BudgetControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( @@ -32,10 +42,10 @@ class BudgetControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Report\BudgetController::budgetReport - * Implement testBudgetReport(). + * @covers FireflyIII\Http\Controllers\Report\BudgetController::period + * Implement testPeriod(). */ - public function testBudgetReport() + public function testPeriod() { // Remove the following lines when you implement this test. $this->markTestIncomplete( diff --git a/tests/acceptance/Controllers/Report/CategoryControllerTest.php b/tests/acceptance/Controllers/Report/CategoryControllerTest.php index 948b82cf83..2778366960 100644 --- a/tests/acceptance/Controllers/Report/CategoryControllerTest.php +++ b/tests/acceptance/Controllers/Report/CategoryControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete( @@ -32,10 +42,22 @@ class CategoryControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Report\CategoryController::categoryReport - * Implement testCategoryReport(). + * @covers FireflyIII\Http\Controllers\Report\CategoryController::income + * Implement testIncome(). */ - public function testCategoryReport() + public function testIncome() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers FireflyIII\Http\Controllers\Report\CategoryController::operations + * Implement testOperations(). + */ + public function testOperations() { // Remove the following lines when you implement this test. $this->markTestIncomplete( diff --git a/tests/acceptance/Controllers/Report/InOutControllerTest.php b/tests/acceptance/Controllers/Report/OperationsControllerTest.php similarity index 55% rename from tests/acceptance/Controllers/Report/InOutControllerTest.php rename to tests/acceptance/Controllers/Report/OperationsControllerTest.php index d8628164c2..3cea11ebc9 100644 --- a/tests/acceptance/Controllers/Report/InOutControllerTest.php +++ b/tests/acceptance/Controllers/Report/OperationsControllerTest.php @@ -1,12 +1,22 @@ markTestIncomplete( @@ -32,10 +42,10 @@ class InOutControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Report\InOutController::incExpReport - * Implement testIncExpReport(). + * @covers FireflyIII\Http\Controllers\Report\OperationsController::income + * Implement testIncome(). */ - public function testIncExpReport() + public function testIncome() { // Remove the following lines when you implement this test. $this->markTestIncomplete( @@ -44,10 +54,10 @@ class InOutControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Report\InOutController::incomeReport - * Implement testIncomeReport(). + * @covers FireflyIII\Http\Controllers\Report\OperationsController::operations + * Implement testOperations(). */ - public function testIncomeReport() + public function testOperations() { // Remove the following lines when you implement this test. $this->markTestIncomplete( diff --git a/tests/acceptance/Controllers/ReportControllerTest.php b/tests/acceptance/Controllers/ReportControllerTest.php index 579e9e6171..d4587bb062 100644 --- a/tests/acceptance/Controllers/ReportControllerTest.php +++ b/tests/acceptance/Controllers/ReportControllerTest.php @@ -1,8 +1,17 @@ markTestIncomplete( @@ -32,10 +42,10 @@ class ConvertControllerTest extends TestCase } /** - * @covers FireflyIII\Http\Controllers\Transaction\ConvertController::submit - * Implement testSubmit(). + * @covers FireflyIII\Http\Controllers\Transaction\ConvertController::postIndex + * Implement testPostIndex(). */ - public function testSubmit() + public function testPostIndex() { // Remove the following lines when you implement this test. $this->markTestIncomplete( diff --git a/tests/acceptance/Controllers/Transaction/MassControllerTest.php b/tests/acceptance/Controllers/Transaction/MassControllerTest.php index d0bc7be105..db76774b1c 100644 --- a/tests/acceptance/Controllers/Transaction/MassControllerTest.php +++ b/tests/acceptance/Controllers/Transaction/MassControllerTest.php @@ -1,10 +1,20 @@ markTestIncomplete(