mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Mostly cleanup and bug fixes.
This commit is contained in:
@@ -26,7 +26,7 @@ class EventTableAdditions1 extends Migration
|
|||||||
// remove some fields:
|
// remove some fields:
|
||||||
Schema::table(
|
Schema::table(
|
||||||
'reminders', function (Blueprint $table) {
|
'reminders', function (Blueprint $table) {
|
||||||
$table->boolean('notnow');
|
$table->boolean('notnow')->default(0);
|
||||||
$table->integer('remindersable_id')->unsigned()->nullable();
|
$table->integer('remindersable_id')->unsigned()->nullable();
|
||||||
$table->string('remindersable_type')->nullable();
|
$table->string('remindersable_type')->nullable();
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: sander
|
|
||||||
* Date: 19/11/14
|
|
||||||
* Time: 21:11
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace FireflyIII\Event;
|
namespace FireflyIII\Event;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,10 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: sander
|
|
||||||
* Date: 13/11/14
|
|
||||||
* Time: 21:01
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace FireflyIII\Search;
|
namespace FireflyIII\Search;
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@ use LaravelBook\Ardent\Ardent;
|
|||||||
* @method static \Illuminate\Database\Query\Builder|\Reminder whereRemindersableId($value)
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereRemindersableId($value)
|
||||||
* @method static \Illuminate\Database\Query\Builder|\Reminder whereRemindersableType($value)
|
* @method static \Illuminate\Database\Query\Builder|\Reminder whereRemindersableType($value)
|
||||||
*/
|
*/
|
||||||
class Reminder extends Eloquent
|
class Reminder extends Ardent
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $table = 'reminders';
|
protected $table = 'reminders';
|
||||||
|
@@ -1,127 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:02.
|
|
||||||
*/
|
|
||||||
class AccountControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var AccountController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
parent::setUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers AccountController::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 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()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,159 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:30.
|
|
||||||
*/
|
|
||||||
class BudgetControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var BudgetController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers BudgetController::amount
|
|
||||||
* @todo Implement testAmount().
|
|
||||||
*/
|
|
||||||
public function testAmount()
|
|
||||||
{
|
|
||||||
// Remove the following lines when you implement this test.
|
|
||||||
$this->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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,123 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:37.
|
|
||||||
*/
|
|
||||||
class CategoryControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var CategoryController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers CategoryController::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 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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,195 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:44.
|
|
||||||
*/
|
|
||||||
class GoogleChartControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var GoogleChartController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers GoogleChartController::accountBalanceChart
|
|
||||||
* @todo Implement testAccountBalanceChart().
|
|
||||||
*/
|
|
||||||
public function testAccountBalanceChart()
|
|
||||||
{
|
|
||||||
// Remove the following lines when you implement this test.
|
|
||||||
$this->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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,106 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:51.
|
|
||||||
*/
|
|
||||||
class HomeControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var HomeController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
parent::setUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers HomeController::flush
|
|
||||||
* @todo Implement testFlush().
|
|
||||||
*/
|
|
||||||
public function testFlush()
|
|
||||||
{
|
|
||||||
|
|
||||||
$response = $this->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()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,63 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:03:56.
|
|
||||||
*/
|
|
||||||
class JsonControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var JsonController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers JsonController::categories
|
|
||||||
* @todo Implement testCategories().
|
|
||||||
*/
|
|
||||||
public function testCategories()
|
|
||||||
{
|
|
||||||
// Remove the following lines when you implement this test.
|
|
||||||
$this->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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,171 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:05.
|
|
||||||
*/
|
|
||||||
class PiggybankControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var PiggybankController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers PiggybankController::add
|
|
||||||
* @todo Implement testAdd().
|
|
||||||
*/
|
|
||||||
public function testAdd()
|
|
||||||
{
|
|
||||||
// Remove the following lines when you implement this test.
|
|
||||||
$this->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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,51 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:12.
|
|
||||||
*/
|
|
||||||
class PreferencesControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var PreferencesController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers PreferencesController::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 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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,63 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:19.
|
|
||||||
*/
|
|
||||||
class ProfileControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var ProfileController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers ProfileController::changePassword
|
|
||||||
* @todo Implement testChangePassword().
|
|
||||||
*/
|
|
||||||
public function testChangePassword()
|
|
||||||
{
|
|
||||||
// Remove the following lines when you implement this test.
|
|
||||||
$this->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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,135 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:26.
|
|
||||||
*/
|
|
||||||
class RecurringControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var RecurringController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers RecurringController::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 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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,39 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:32.
|
|
||||||
*/
|
|
||||||
class ReminderControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var ReminderController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers ReminderController::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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,51 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:38.
|
|
||||||
*/
|
|
||||||
class ReportControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var ReportController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers ReportController::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 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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,39 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:45.
|
|
||||||
*/
|
|
||||||
class SearchControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var SearchController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers SearchController::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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,9 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
use Mockery as m;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class TestCase
|
* Class TestCase
|
||||||
*/
|
*/
|
||||||
class TestCase extends Illuminate\Foundation\Testing\TestCase {
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Creates the application.
|
* Creates the application.
|
||||||
*
|
*
|
||||||
@@ -11,15 +13,38 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase {
|
|||||||
*/
|
*/
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
$unitTesting = true;
|
$unitTesting = true;
|
||||||
$testEnvironment = 'testing';
|
$testEnvironment = 'testing';
|
||||||
return require __DIR__.'/../../bootstrap/start.php';
|
|
||||||
|
return require __DIR__ . '/../../bootstrap/start.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp() {
|
public function setUp()
|
||||||
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
Artisan::call('migrate');
|
Artisan::call('migrate');
|
||||||
$this->seed();
|
$this->seed();
|
||||||
|
|
||||||
|
|
||||||
//$this->
|
//$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();
|
||||||
|
}
|
||||||
}
|
}
|
@@ -1,123 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:51.
|
|
||||||
*/
|
|
||||||
class TransactionControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var TransactionController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers TransactionController::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 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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,123 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2014-11-18 at 09:04:57.
|
|
||||||
*/
|
|
||||||
class UserControllerTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var UserController
|
|
||||||
*/
|
|
||||||
protected $object;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets up the fixture, for example, opens a network connection.
|
|
||||||
* This method is called before a test is executed.
|
|
||||||
*/
|
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tears down the fixture, for example, closes a network connection.
|
|
||||||
* This method is called after a test is executed.
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @covers UserController::login
|
|
||||||
* @todo Implement testLogin().
|
|
||||||
*/
|
|
||||||
public function testLogin()
|
|
||||||
{
|
|
||||||
// Remove the following lines when you implement this test.
|
|
||||||
$this->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.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
7
app/tests/factories/TransactionCurrency.php
Normal file
7
app/tests/factories/TransactionCurrency.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
League\FactoryMuffin\Facade::define(
|
||||||
|
'TransactionCurrency', [
|
||||||
|
'code' => 'word',
|
||||||
|
]
|
||||||
|
);
|
12
app/tests/factories/TransactionJournal.php
Normal file
12
app/tests/factories/TransactionJournal.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
League\FactoryMuffin\Facade::define(
|
||||||
|
'TransactionJournal', [
|
||||||
|
'transaction_type_id' => 'factory|TransactionType',
|
||||||
|
'transaction_currency_id' => 'factory|TransactionCurrency',
|
||||||
|
'description' => 'text',
|
||||||
|
'date' => 'date|Y-m-d',
|
||||||
|
'completed' => 'boolean',
|
||||||
|
'user_id' => 'factory|User'
|
||||||
|
]
|
||||||
|
);
|
7
app/tests/factories/TransactionType.php
Normal file
7
app/tests/factories/TransactionType.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
League\FactoryMuffin\Facade::define(
|
||||||
|
'TransactionType', [
|
||||||
|
'type' => 'word',
|
||||||
|
]
|
||||||
|
);
|
8
app/tests/factories/User.php
Normal file
8
app/tests/factories/User.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
League\FactoryMuffin\Facade::define(
|
||||||
|
'User', [
|
||||||
|
'email' => 'email',
|
||||||
|
'migrated' => 1,
|
||||||
|
'password' => 'empty'
|
||||||
|
]
|
||||||
|
);
|
@@ -16,9 +16,7 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
Transactions
|
Transactions
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.journals-full')
|
@include('list.journals-full')
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3 col-md-3 col-sm-5">
|
<div class="col-lg-3 col-md-3 col-sm-5">
|
||||||
|
@@ -21,9 +21,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
|
||||||
@include('list.categories')
|
@include('list.categories')
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
Summary
|
Summary
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
@@ -62,7 +61,6 @@
|
|||||||
<td>{{mf($inSum + $outSum)}}</td>
|
<td>{{mf($inSum + $outSum)}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -30,7 +30,9 @@
|
|||||||
"barryvdh/laravel-debugbar": "@stable",
|
"barryvdh/laravel-debugbar": "@stable",
|
||||||
"barryvdh/laravel-ide-helper": "@stable",
|
"barryvdh/laravel-ide-helper": "@stable",
|
||||||
"doctrine/dbal": "~2.3",
|
"doctrine/dbal": "~2.3",
|
||||||
"satooshi/php-coveralls": "dev-master"
|
"satooshi/php-coveralls": "dev-master",
|
||||||
|
"mockery/mockery": "@stable",
|
||||||
|
"league/factory-muffin": "~2.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
|
Reference in New Issue
Block a user