2015-05-18 17:57:44 +02:00
|
|
|
<?php
|
|
|
|
|
2015-05-22 18:31:57 +02:00
|
|
|
use League\FactoryMuffin\Facade as FactoryMuffin;
|
|
|
|
|
2015-05-18 17:57:44 +02:00
|
|
|
/**
|
|
|
|
* 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()
|
|
|
|
{
|
2015-05-22 18:31:57 +02:00
|
|
|
$user = FactoryMuffin::create('FireflyIII\User');
|
|
|
|
$this->be($user);
|
|
|
|
|
|
|
|
$this->call('GET', '/chart/report/in-out/2015');
|
|
|
|
$this->assertResponseOk();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testYearInOutShared()
|
|
|
|
{
|
|
|
|
$user = FactoryMuffin::create('FireflyIII\User');
|
|
|
|
$this->be($user);
|
|
|
|
|
|
|
|
$this->call('GET', '/chart/report/in-out/2015/shared');
|
|
|
|
$this->assertResponseOk();
|
|
|
|
|
2015-05-18 17:57:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function testYearInOutSummarized()
|
|
|
|
{
|
2015-05-22 18:31:57 +02:00
|
|
|
$user = FactoryMuffin::create('FireflyIII\User');
|
|
|
|
$this->be($user);
|
|
|
|
|
|
|
|
$this->call('GET', '/chart/report/in-out-sum/2015');
|
|
|
|
$this->assertResponseOk();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testYearInOutSummarizedShared()
|
|
|
|
{
|
|
|
|
$user = FactoryMuffin::create('FireflyIII\User');
|
|
|
|
$this->be($user);
|
|
|
|
|
|
|
|
$this->call('GET', '/chart/report/in-out-sum/2015/shared');
|
|
|
|
$this->assertResponseOk();
|
2015-05-18 17:57:44 +02:00
|
|
|
}
|
2015-05-20 19:56:14 +02:00
|
|
|
}
|