mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed the tests.
This commit is contained in:
parent
1bf0968bfe
commit
4113c4ff40
@ -24,7 +24,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if budgetLine.getRepetition %}
|
{% 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 %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -86,6 +86,7 @@ class ReportControllerTest extends TestCase
|
|||||||
$helper->shouldReceive('getBudgetReport')->andReturn(new Collection);
|
$helper->shouldReceive('getBudgetReport')->andReturn(new Collection);
|
||||||
$helper->shouldReceive('getCategoryReport')->andReturn(new Collection);
|
$helper->shouldReceive('getCategoryReport')->andReturn(new Collection);
|
||||||
$helper->shouldReceive('getBalanceReport')->andReturn(new Collection);
|
$helper->shouldReceive('getBalanceReport')->andReturn(new Collection);
|
||||||
|
$helper->shouldReceive('getBillReport')->andReturn(new Collection);
|
||||||
|
|
||||||
|
|
||||||
$this->call('GET', '/reports/2015/1');
|
$this->call('GET', '/reports/2015/1');
|
||||||
@ -112,6 +113,7 @@ class ReportControllerTest extends TestCase
|
|||||||
$helper->shouldReceive('getBudgetReport')->andReturn(new Collection);
|
$helper->shouldReceive('getBudgetReport')->andReturn(new Collection);
|
||||||
$helper->shouldReceive('getCategoryReport')->andReturn(new Collection);
|
$helper->shouldReceive('getCategoryReport')->andReturn(new Collection);
|
||||||
$helper->shouldReceive('getBalanceReport')->andReturn(new Collection);
|
$helper->shouldReceive('getBalanceReport')->andReturn(new Collection);
|
||||||
|
$helper->shouldReceive('getBillReport')->andReturn(new Collection);
|
||||||
|
|
||||||
$this->call('GET', '/reports/2015/1/shared');
|
$this->call('GET', '/reports/2015/1/shared');
|
||||||
$this->assertResponseOk();
|
$this->assertResponseOk();
|
||||||
|
40
tests/controllers/charts/ChartAccountControllerTest.php
Normal file
40
tests/controllers/charts/ChartAccountControllerTest.php
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
37
tests/controllers/charts/ChartBillControllerTest.php
Normal file
37
tests/controllers/charts/ChartBillControllerTest.php
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
41
tests/controllers/charts/ChartBudgetControllerTest.php
Normal file
41
tests/controllers/charts/ChartBudgetControllerTest.php
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
46
tests/controllers/charts/ChartCategoryControllerTest.php
Normal file
46
tests/controllers/charts/ChartCategoryControllerTest.php
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
30
tests/controllers/charts/ChartPiggyBankControllerTest.php
Normal file
30
tests/controllers/charts/ChartPiggyBankControllerTest.php
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
35
tests/controllers/charts/ChartReportControllerTest.php
Normal file
35
tests/controllers/charts/ChartReportControllerTest.php
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user