Fixed the tests.

This commit is contained in:
James Cole 2015-05-18 17:57:44 +02:00
parent 1bf0968bfe
commit 4113c4ff40
12 changed files with 242 additions and 11 deletions

View File

@ -24,7 +24,7 @@
</td>
<td>
{% if budgetLine.getRepetition %}
{{ budgetLine.getRepetition.startdate.formatLocalized(monthAndDayFormat) }}
<a href="{{ route('budgets.show', [budgetLine.getBudget.id, budgetLine.getRepetition.id]) }}">{{ budgetLine.getRepetition.startdate.formatLocalized(monthAndDayFormat) }}</a>
{% endif %}
</td>
<td>

View File

@ -86,6 +86,7 @@ class ReportControllerTest extends TestCase
$helper->shouldReceive('getBudgetReport')->andReturn(new Collection);
$helper->shouldReceive('getCategoryReport')->andReturn(new Collection);
$helper->shouldReceive('getBalanceReport')->andReturn(new Collection);
$helper->shouldReceive('getBillReport')->andReturn(new Collection);
$this->call('GET', '/reports/2015/1');
@ -112,6 +113,7 @@ class ReportControllerTest extends TestCase
$helper->shouldReceive('getBudgetReport')->andReturn(new Collection);
$helper->shouldReceive('getCategoryReport')->andReturn(new Collection);
$helper->shouldReceive('getBalanceReport')->andReturn(new Collection);
$helper->shouldReceive('getBillReport')->andReturn(new Collection);
$this->call('GET', '/reports/2015/1/shared');
$this->assertResponseOk();

View File

@ -0,0 +1,40 @@
<?php
/**
* Class ChartAccountControllerTest
*/
class ChartAccountControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
public function testAll()
{
$this->markTestIncomplete();
}
public function testFrontpage()
{
$this->markTestIncomplete();
}
public function testSingle()
{
$this->markTestIncomplete();
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Class ChartBillControllerTest
*/
class ChartBillControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
public function testFrontpage()
{
$this->markTestIncomplete();
}
public function testSingle()
{
$this->markTestIncomplete();
}
}

View File

@ -0,0 +1,41 @@
<?php
/**
* Class ChartBudgetControllerTest
*/
class ChartBudgetControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
public function testBudget()
{
$this->markTestIncomplete();
}
public function testFrontpage()
{
$this->markTestIncomplete();
}
public function testYear()
{
$this->markTestIncomplete();
}
}

View File

@ -0,0 +1,46 @@
<?php
/**
* Class ChartCategoryControllerTest
*/
class ChartCategoryControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
public function testAll()
{
$this->markTestIncomplete();
}
public function testFrontpage()
{
$this->markTestIncomplete();
}
public function testMonth()
{
$this->markTestIncomplete();
}
public function testYear()
{
$this->markTestIncomplete();
}
}

View File

@ -0,0 +1,30 @@
<?php
/**
* Class ChartPiggyBankControllerTest
*/
class ChartPiggyBankControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
public function testHistory()
{
$this->markTestIncomplete();
}
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Class ChartReportControllerTest
*/
class ChartReportControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
public function testYearInOut()
{
$this->markTestIncomplete();
}
public function testYearInOutSummarized()
{
$this->markTestIncomplete();
}
}