mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 06:43:23 +00:00
66 lines
1.5 KiB
PHP
66 lines
1.5 KiB
PHP
<?php
|
|
|
|
use League\FactoryMuffin\Facade as FactoryMuffin;
|
|
|
|
/**
|
|
* 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()
|
|
{
|
|
$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();
|
|
|
|
}
|
|
|
|
public function testYearInOutSummarized()
|
|
{
|
|
$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();
|
|
}
|
|
}
|