Files
firefly-iii/tests/controllers/charts/ChartReportControllerTest.php

78 lines
1.9 KiB
PHP
Raw Normal View History

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();
}
2015-05-23 19:41:54 +02:00
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOut
*/
2015-05-18 17:57:44 +02:00
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();
}
2015-05-23 19:41:54 +02:00
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOut
*/
2015-05-22 18:31:57 +02:00
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
}
2015-05-23 19:41:54 +02:00
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized
*/
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();
}
2015-05-23 19:41:54 +02:00
/**
* @covers FireflyIII\Http\Controllers\Chart\ReportController::yearInOutSummarized
*/
2015-05-22 18:31:57 +02:00
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
}