diff --git a/app/database/migrations/2014_11_17_194734_event_table_additions_1.php b/app/database/migrations/2014_11_17_194734_event_table_additions_1.php index e5e419bb7f..6ccfb73235 100644 --- a/app/database/migrations/2014_11_17_194734_event_table_additions_1.php +++ b/app/database/migrations/2014_11_17_194734_event_table_additions_1.php @@ -26,7 +26,7 @@ class EventTableAdditions1 extends Migration // remove some fields: Schema::table( 'reminders', function (Blueprint $table) { - $table->boolean('notnow'); + $table->boolean('notnow')->default(0); $table->integer('remindersable_id')->unsigned()->nullable(); $table->string('remindersable_type')->nullable(); } diff --git a/app/lib/FireflyIII/Event/TransactionJournal.php b/app/lib/FireflyIII/Event/TransactionJournal.php index e966e13ff5..aabc4c0537 100644 --- a/app/lib/FireflyIII/Event/TransactionJournal.php +++ b/app/lib/FireflyIII/Event/TransactionJournal.php @@ -1,11 +1,4 @@ markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::delete - * @todo Implement testDelete(). - */ - public function testDelete() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::destroy - * @todo Implement testDestroy(). - */ - public function testDestroy() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::edit - * @todo Implement testEdit(). - */ - public function testEdit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::show - * @todo Implement testShow(). - */ - public function testShow() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::store - * @todo Implement testStore(). - */ - public function testStore() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers AccountController::update - * @todo Implement testUpdate(). - */ - public function testUpdate() - { - // Remove the following lines when you implement this test. - $this->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. - */ - protected function tearDown() - { - } -} diff --git a/app/tests/BudgetControllerTest.php b/app/tests/BudgetControllerTest.php deleted file mode 100644 index c2565580d5..0000000000 --- a/app/tests/BudgetControllerTest.php +++ /dev/null @@ -1,159 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::create - * @todo Implement testCreate(). - */ - public function testCreate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::delete - * @todo Implement testDelete(). - */ - public function testDelete() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::destroy - * @todo Implement testDestroy(). - */ - public function testDestroy() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::edit - * @todo Implement testEdit(). - */ - public function testEdit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::postUpdateIncome - * @todo Implement testPostUpdateIncome(). - */ - public function testPostUpdateIncome() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::show - * @todo Implement testShow(). - */ - public function testShow() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::store - * @todo Implement testStore(). - */ - public function testStore() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::update - * @todo Implement testUpdate(). - */ - public function testUpdate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers BudgetController::updateIncome - * @todo Implement testUpdateIncome(). - */ - public function testUpdateIncome() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/CategoryControllerTest.php b/app/tests/CategoryControllerTest.php deleted file mode 100644 index b2468dfe3e..0000000000 --- a/app/tests/CategoryControllerTest.php +++ /dev/null @@ -1,123 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::delete - * @todo Implement testDelete(). - */ - public function testDelete() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::destroy - * @todo Implement testDestroy(). - */ - public function testDestroy() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::edit - * @todo Implement testEdit(). - */ - public function testEdit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::show - * @todo Implement testShow(). - */ - public function testShow() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::store - * @todo Implement testStore(). - */ - public function testStore() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers CategoryController::update - * @todo Implement testUpdate(). - */ - public function testUpdate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/GoogleChartControllerTest.php b/app/tests/GoogleChartControllerTest.php deleted file mode 100644 index 5ac24dcaec..0000000000 --- a/app/tests/GoogleChartControllerTest.php +++ /dev/null @@ -1,195 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::accountSankeyInChart - * @todo Implement testAccountSankeyInChart(). - */ - public function testAccountSankeyInChart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::accountSankeyOutChart - * @todo Implement testAccountSankeyOutChart(). - */ - public function testAccountSankeyOutChart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::allAccountsBalanceChart - * @todo Implement testAllAccountsBalanceChart(). - */ - public function testAllAccountsBalanceChart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::allBudgetsHomeChart - * @todo Implement testAllBudgetsHomeChart(). - */ - public function testAllBudgetsHomeChart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::allCategoriesHomeChart - * @todo Implement testAllCategoriesHomeChart(). - */ - public function testAllCategoriesHomeChart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::budgetLimitSpending - * @todo Implement testBudgetLimitSpending(). - */ - public function testBudgetLimitSpending() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::budgetsReportChart - * @todo Implement testBudgetsReportChart(). - */ - public function testBudgetsReportChart() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::componentsAndSpending - * @todo Implement testComponentsAndSpending(). - */ - public function testComponentsAndSpending() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::piggyBankHistory - * @todo Implement testPiggyBankHistory(). - */ - public function testPiggyBankHistory() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::recurringOverview - * @todo Implement testRecurringOverview(). - */ - public function testRecurringOverview() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::recurringTransactionsOverview - * @todo Implement testRecurringTransactionsOverview(). - */ - public function testRecurringTransactionsOverview() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::yearInExp - * @todo Implement testYearInExp(). - */ - public function testYearInExp() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers GoogleChartController::yearInExpSum - * @todo Implement testYearInExpSum(). - */ - public function testYearInExpSum() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/HomeControllerTest.php b/app/tests/HomeControllerTest.php deleted file mode 100644 index 86bf2218b4..0000000000 --- a/app/tests/HomeControllerTest.php +++ /dev/null @@ -1,106 +0,0 @@ -call('GET', '/flush'); - $this->assertRedirectedToRoute('index'); - } - - /** - * @covers HomeController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - $this->be(new User(['email' => 'test@example.com'])); - - - $response = $this->call('GET', '/'); - $this->assertResponseOk(); - - $this->assertTrue(true); - } - /** - * @covers HomeController::index - * @todo Implement testIndex(). - */ - public function testIndexWithAccounts() - { - $user = new User(['email' => 'test@example.com']); - $this->be($user); - - $pref = new Preference(['user_id' => $user->id,'name' => 'frontpageAccounts', 'data' => [1]]); - $pref->save(); - - $response = $this->call('GET', '/'); - $this->assertResponseOk(); - } - - /** - * @covers HomeController::rangeJump - * @todo Implement testRangeJump(). - */ - public function testRangeJump() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers HomeController::sessionNext - * @todo Implement testSessionNext(). - */ - public function testSessionNext() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers HomeController::sessionPrev - * @todo Implement testSessionPrev(). - */ - public function testSessionPrev() - { - // Remove the following lines when you implement this test. - $this->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. - */ - protected function tearDown() - { - } -} diff --git a/app/tests/JsonControllerTest.php b/app/tests/JsonControllerTest.php deleted file mode 100644 index d382ae68bd..0000000000 --- a/app/tests/JsonControllerTest.php +++ /dev/null @@ -1,63 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers JsonController::expenseAccounts - * @todo Implement testExpenseAccounts(). - */ - public function testExpenseAccounts() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers JsonController::revenueAccounts - * @todo Implement testRevenueAccounts(). - */ - public function testRevenueAccounts() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/PiggybankControllerTest.php b/app/tests/PiggybankControllerTest.php deleted file mode 100644 index 53c5a18242..0000000000 --- a/app/tests/PiggybankControllerTest.php +++ /dev/null @@ -1,171 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::create - * @todo Implement testCreate(). - */ - public function testCreate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::delete - * @todo Implement testDelete(). - */ - public function testDelete() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::destroy - * @todo Implement testDestroy(). - */ - public function testDestroy() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::edit - * @todo Implement testEdit(). - */ - public function testEdit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::postAdd - * @todo Implement testPostAdd(). - */ - public function testPostAdd() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::postRemove - * @todo Implement testPostRemove(). - */ - public function testPostRemove() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::remove - * @todo Implement testRemove(). - */ - public function testRemove() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::show - * @todo Implement testShow(). - */ - public function testShow() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::store - * @todo Implement testStore(). - */ - public function testStore() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PiggybankController::update - * @todo Implement testUpdate(). - */ - public function testUpdate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/PreferencesControllerTest.php b/app/tests/PreferencesControllerTest.php deleted file mode 100644 index efbd2f468d..0000000000 --- a/app/tests/PreferencesControllerTest.php +++ /dev/null @@ -1,51 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers PreferencesController::postIndex - * @todo Implement testPostIndex(). - */ - public function testPostIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/ProfileControllerTest.php b/app/tests/ProfileControllerTest.php deleted file mode 100644 index 18b1755a3d..0000000000 --- a/app/tests/ProfileControllerTest.php +++ /dev/null @@ -1,63 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers ProfileController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers ProfileController::postChangePassword - * @todo Implement testPostChangePassword(). - */ - public function testPostChangePassword() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/RecurringControllerTest.php b/app/tests/RecurringControllerTest.php deleted file mode 100644 index ee7cdd6a4a..0000000000 --- a/app/tests/RecurringControllerTest.php +++ /dev/null @@ -1,135 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::delete - * @todo Implement testDelete(). - */ - public function testDelete() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::destroy - * @todo Implement testDestroy(). - */ - public function testDestroy() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::edit - * @todo Implement testEdit(). - */ - public function testEdit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::rescan - * @todo Implement testRescan(). - */ - public function testRescan() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::show - * @todo Implement testShow(). - */ - public function testShow() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::store - * @todo Implement testStore(). - */ - public function testStore() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers RecurringController::update - * @todo Implement testUpdate(). - */ - public function testUpdate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/ReminderControllerTest.php b/app/tests/ReminderControllerTest.php deleted file mode 100644 index 60558fe051..0000000000 --- a/app/tests/ReminderControllerTest.php +++ /dev/null @@ -1,39 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/ReportControllerTest.php b/app/tests/ReportControllerTest.php deleted file mode 100644 index a2683c423d..0000000000 --- a/app/tests/ReportControllerTest.php +++ /dev/null @@ -1,51 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers ReportController::year - * @todo Implement testYear(). - */ - public function testYear() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/SearchControllerTest.php b/app/tests/SearchControllerTest.php deleted file mode 100644 index 3caaeda670..0000000000 --- a/app/tests/SearchControllerTest.php +++ /dev/null @@ -1,39 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/TestCase.php b/app/tests/TestCase.php index f38b1effd9..c0d01d3355 100644 --- a/app/tests/TestCase.php +++ b/app/tests/TestCase.php @@ -1,9 +1,11 @@ seed(); + + //$this-> } + + public function mock($class) + { + $mock = Mockery::mock($class); + + $this->app->instance($class, $mock); + + return $mock; + } + + static public function setupBeforeClass() + { + League\FactoryMuffin\Facade::loadFactories(__DIR__ . '/factories'); + } + + public function tearDown() + { + m::close(); + } } \ No newline at end of file diff --git a/app/tests/TransactionControllerTest.php b/app/tests/TransactionControllerTest.php deleted file mode 100644 index 9d9b5200c8..0000000000 --- a/app/tests/TransactionControllerTest.php +++ /dev/null @@ -1,123 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::delete - * @todo Implement testDelete(). - */ - public function testDelete() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::destroy - * @todo Implement testDestroy(). - */ - public function testDestroy() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::edit - * @todo Implement testEdit(). - */ - public function testEdit() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::index - * @todo Implement testIndex(). - */ - public function testIndex() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::show - * @todo Implement testShow(). - */ - public function testShow() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::store - * @todo Implement testStore(). - */ - public function testStore() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers TransactionController::update - * @todo Implement testUpdate(). - */ - public function testUpdate() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/UserControllerTest.php b/app/tests/UserControllerTest.php deleted file mode 100644 index f934b8402a..0000000000 --- a/app/tests/UserControllerTest.php +++ /dev/null @@ -1,123 +0,0 @@ -markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::logout - * @todo Implement testLogout(). - */ - public function testLogout() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::postLogin - * @todo Implement testPostLogin(). - */ - public function testPostLogin() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::postRegister - * @todo Implement testPostRegister(). - */ - public function testPostRegister() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::postRemindme - * @todo Implement testPostRemindme(). - */ - public function testPostRemindme() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::register - * @todo Implement testRegister(). - */ - public function testRegister() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::remindme - * @todo Implement testRemindme(). - */ - public function testRemindme() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } - - /** - * @covers UserController::reset - * @todo Implement testReset(). - */ - public function testReset() - { - // Remove the following lines when you implement this test. - $this->markTestIncomplete( - 'This test has not been implemented yet.' - ); - } -} diff --git a/app/tests/factories/TransactionCurrency.php b/app/tests/factories/TransactionCurrency.php new file mode 100644 index 0000000000..9804dd56c2 --- /dev/null +++ b/app/tests/factories/TransactionCurrency.php @@ -0,0 +1,7 @@ + 'word', + ] +); diff --git a/app/tests/factories/TransactionJournal.php b/app/tests/factories/TransactionJournal.php new file mode 100644 index 0000000000..58fd89d200 --- /dev/null +++ b/app/tests/factories/TransactionJournal.php @@ -0,0 +1,12 @@ + 'factory|TransactionType', + 'transaction_currency_id' => 'factory|TransactionCurrency', + 'description' => 'text', + 'date' => 'date|Y-m-d', + 'completed' => 'boolean', + 'user_id' => 'factory|User' + ] +); diff --git a/app/tests/factories/TransactionType.php b/app/tests/factories/TransactionType.php new file mode 100644 index 0000000000..0876277d2c --- /dev/null +++ b/app/tests/factories/TransactionType.php @@ -0,0 +1,7 @@ + 'word', + ] +); diff --git a/app/tests/factories/User.php b/app/tests/factories/User.php new file mode 100644 index 0000000000..c7a74e8e82 --- /dev/null +++ b/app/tests/factories/User.php @@ -0,0 +1,8 @@ + 'email', + 'migrated' => 1, + 'password' => 'empty' + ] +); diff --git a/app/views/budgets/show.blade.php b/app/views/budgets/show.blade.php index 4af1bea550..3d5b5ec428 100644 --- a/app/views/budgets/show.blade.php +++ b/app/views/budgets/show.blade.php @@ -16,9 +16,7 @@
| @@ -62,7 +61,6 @@ | {{mf($inSum + $outSum)}} |