mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
New tests
This commit is contained in:
@@ -35,7 +35,6 @@ class ConfigurationControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\ConfigurationController::index
|
||||
* Implement testIndex().
|
||||
*/
|
||||
public function testIndex()
|
||||
{
|
||||
@@ -60,7 +59,6 @@ class ConfigurationControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\ConfigurationController::store
|
||||
* Implement testStore().
|
||||
*/
|
||||
public function testPostIndex()
|
||||
{
|
||||
@@ -74,12 +72,4 @@ class ConfigurationControllerTest extends TestCase
|
||||
$this->assertSessionHas('success');
|
||||
$this->assertResponseStatus(302);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,6 @@ class DomainControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\DomainController::domains
|
||||
* Implement testDomains().
|
||||
*/
|
||||
public function testDomains()
|
||||
{
|
||||
@@ -46,7 +45,6 @@ class DomainControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\DomainController::manual
|
||||
* Implement testManual().
|
||||
*/
|
||||
public function testManual()
|
||||
{
|
||||
@@ -58,7 +56,6 @@ class DomainControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\DomainController::toggleDomain
|
||||
* Implement testToggleDomain().
|
||||
*/
|
||||
public function testToggleDomain()
|
||||
{
|
||||
@@ -68,11 +65,4 @@ class DomainControllerTest extends TestCase
|
||||
$this->assertResponseStatus(302);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,6 @@ class HomeControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\HomeController::index
|
||||
* Implement testIndex().
|
||||
*/
|
||||
public function testIndex()
|
||||
{
|
||||
@@ -42,11 +41,4 @@ class HomeControllerTest extends TestCase
|
||||
$this->see('<ol class="breadcrumb">');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,6 @@ class UserControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\UserController::edit
|
||||
* Implement testEdit().
|
||||
*/
|
||||
public function testEdit()
|
||||
{
|
||||
@@ -44,7 +43,6 @@ class UserControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\UserController::index
|
||||
* Implement testIndex().
|
||||
*/
|
||||
public function testIndex()
|
||||
{
|
||||
@@ -57,7 +55,6 @@ class UserControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Admin\UserController::show
|
||||
* Implement testShow().
|
||||
*/
|
||||
public function testShow()
|
||||
{
|
||||
@@ -68,11 +65,4 @@ class UserControllerTest extends TestCase
|
||||
$this->see('<ol class="breadcrumb">');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -35,7 +35,6 @@ class ConfirmationControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\ConfirmationController::confirmationError
|
||||
* Implement testConfirmationError().
|
||||
*/
|
||||
public function testConfirmationError()
|
||||
{
|
||||
@@ -59,7 +58,6 @@ class ConfirmationControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\ConfirmationController::doConfirmation
|
||||
* Implement testDoConfirmation().
|
||||
*/
|
||||
public function testDoConfirmation()
|
||||
{
|
||||
@@ -84,7 +82,6 @@ class ConfirmationControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\ConfirmationController::resendConfirmation
|
||||
* Implement testResendConfirmation().
|
||||
*/
|
||||
public function testResendConfirmation()
|
||||
{
|
||||
@@ -111,11 +108,4 @@ class ConfirmationControllerTest extends TestCase
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,6 @@ class LoginControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\LoginController::login
|
||||
* Implement testLogin().
|
||||
*/
|
||||
public function testLogin()
|
||||
{
|
||||
@@ -45,7 +44,6 @@ class LoginControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\LoginController::logout
|
||||
* Implement testLogout().
|
||||
*/
|
||||
public function testLogout()
|
||||
{
|
||||
@@ -56,7 +54,6 @@ class LoginControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\LoginController::showLoginForm
|
||||
* Implement testShowLoginForm().
|
||||
*/
|
||||
public function testShowLoginForm()
|
||||
{
|
||||
@@ -64,12 +61,4 @@ class LoginControllerTest extends TestCase
|
||||
->seePageIs('/login')
|
||||
->see('Sign in to start your session');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -34,7 +34,6 @@ class TwoFactorControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\TwoFactorController::index
|
||||
* Implement testIndex().
|
||||
*/
|
||||
public function testIndex()
|
||||
{
|
||||
@@ -54,7 +53,6 @@ class TwoFactorControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Auth\TwoFactorController::lostTwoFactor
|
||||
* Implement testLostTwoFactor().
|
||||
*/
|
||||
public function testLostTwoFactor()
|
||||
{
|
||||
@@ -72,11 +70,4 @@ class TwoFactorControllerTest extends TestCase
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -30,74 +30,79 @@ class AccountControllerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseAccounts
|
||||
* Implement testExpenseAccounts().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseAccounts
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testExpenseAccounts()
|
||||
public function testExpenseAccounts(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.expense'));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseBudget
|
||||
* Implement testExpenseBudget().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseBudget
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testExpenseBudget()
|
||||
public function testExpenseBudget(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.expense-budget', [1, '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseCategory
|
||||
* Implement testExpenseCategory().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseCategory
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testExpenseCategory()
|
||||
public function testExpenseCategory(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.expense-category', [1, '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::frontpage
|
||||
* Implement testFrontpage().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::frontpage
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testFrontpage()
|
||||
public function testFrontpage(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.frontpage'));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::incomeCategory
|
||||
* Implement testIncomeCategory().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::incomeCategory
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testIncomeCategory()
|
||||
public function testIncomeCategory(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.income-category', [1, '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::period
|
||||
* Implement testSpecificPeriod().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::period
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testPeriod()
|
||||
public function testPeriod(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.period', [1, '2012-01-01']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::report
|
||||
* Implement testReport().
|
||||
*/
|
||||
public function testReport()
|
||||
{
|
||||
@@ -107,32 +112,27 @@ class AccountControllerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::revenueAccounts
|
||||
* Implement testRevenueAccounts().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::revenueAccounts
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testRevenueAccounts()
|
||||
public function testRevenueAccounts(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.revenue'));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::single
|
||||
* Implement testSingle().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::single
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testSingle()
|
||||
public function testSingle(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.account.single', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,33 +31,24 @@ class BillControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BillController::frontpage
|
||||
* Implement testFrontpage().
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testFrontpage()
|
||||
public function testFrontpage(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.bill.frontpage'));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BillController::single
|
||||
* Implement testSingle().
|
||||
*/
|
||||
public function testSingle()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.bill.single', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,69 +31,57 @@ class BudgetControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BudgetController::budget
|
||||
* Implement testBudget().
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testBudget()
|
||||
public function testBudget(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.budget.budget', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BudgetController::budgetLimit
|
||||
* Implement testBudgetLimit().
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testBudgetLimit()
|
||||
public function testBudgetLimit(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.budget.budget', [1,1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BudgetController::frontpage
|
||||
* Implement testFrontpage().
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testFrontpage()
|
||||
public function testFrontpage(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.budget.frontpage'));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BudgetController::period
|
||||
* Implement testPeriod().
|
||||
*/
|
||||
public function testPeriod()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.budget.period', [1,'1','20120101','20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\BudgetController::periodNoBudget
|
||||
* Implement testPeriodNoBudget().
|
||||
*/
|
||||
public function testPeriodNoBudget()
|
||||
{
|
||||
// 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()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.budget.period.no-budget', ['1','20120101','20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
}
|
||||
|
@@ -30,82 +30,70 @@ class CategoryControllerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::all
|
||||
* Implement testAll().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::all
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testAll()
|
||||
public function testAll(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.category.all', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::currentPeriod
|
||||
* Implement testCurrentPeriod().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::currentPeriod
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testCurrentPeriod()
|
||||
public function testCurrentPeriod(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.category.current', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::frontpage
|
||||
* Implement testFrontpage().
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::frontpage
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testFrontpage()
|
||||
public function testFrontpage(string $range)
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.category.current', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::reportPeriod
|
||||
* Implement testReportPeriod().
|
||||
*/
|
||||
public function testReportPeriod()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.period', [1, '1', '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::reportPeriodNoCategory
|
||||
* Implement testReportPeriodNoCategory().
|
||||
*/
|
||||
public function testReportPeriodNoCategory()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.period.no-category', ['1', '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryController::specificPeriod
|
||||
* Implement testSpecificPeriod().
|
||||
* @dataProvider dateRangeProvider
|
||||
*/
|
||||
public function testSpecificPeriod()
|
||||
{
|
||||
// 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()
|
||||
public function testSpecificPeriod(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
$this->call('get', route('chart.category.specific', ['1', '2012-01-01']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
}
|
||||
|
@@ -31,69 +31,52 @@ class CategoryReportControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryReportController::accountExpense
|
||||
* Implement testAccountExpense().
|
||||
*/
|
||||
public function testAccountExpense()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.account-expense', ['1', '1', '20120101', '20120131', 0]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryReportController::accountIncome
|
||||
* Implement testAccountIncome().
|
||||
*/
|
||||
public function testAccountIncome()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.account-income', ['1', '1', '20120101', '20120131', 0]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryReportController::categoryExpense
|
||||
* Implement testCategoryExpense().
|
||||
*/
|
||||
public function testCategoryExpense()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.category-expense', ['1', '1', '20120101', '20120131', 0]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryReportController::categoryIncome
|
||||
* Implement testCategoryIncome().
|
||||
*/
|
||||
public function testCategoryIncome()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.category-income', ['1', '1', '20120101', '20120131', 0]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\CategoryReportController::mainChart
|
||||
* Implement testMainChart().
|
||||
*/
|
||||
public function testMainChart()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.category.main', ['1', '1', '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -31,21 +31,11 @@ class PiggyBankControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\PiggyBankController::history
|
||||
* Implement testHistory().
|
||||
*/
|
||||
public function testHistory()
|
||||
{
|
||||
// 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()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.piggy-bank.history', [1]));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
}
|
||||
|
@@ -31,45 +31,31 @@ class ReportControllerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\ReportController::netWorth
|
||||
* Implement testNetWorth().
|
||||
*/
|
||||
public function testNetWorth()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.report.net-worth', [1, '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\ReportController::operations
|
||||
* Implement testOperations().
|
||||
*/
|
||||
public function testOperations()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.report.operations', [1, '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Controllers\Chart\ReportController::sum
|
||||
* Implement testSum().
|
||||
*/
|
||||
public function testSum()
|
||||
{
|
||||
// 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()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->call('get', route('chart.report.sum', [1, '20120101', '20120131']));
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
}
|
||||
|
@@ -58,7 +58,7 @@ class HomeControllerTest extends TestCase
|
||||
*
|
||||
* @param $range
|
||||
*/
|
||||
public function testIndex($range)
|
||||
public function testIndex(string $range)
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->changeDateRange($this->user(), $range);
|
||||
|
Reference in New Issue
Block a user