mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-22 22:43:20 -06:00
28 lines
696 B
PHP
28 lines
696 B
PHP
<?php
|
|
|
|
/**
|
|
* HomeControllerTest.php
|
|
* Copyright (C) 2016 Sander Dorigo
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
class HomeControllerTest extends TestCase
|
|
{
|
|
public function testDateRange()
|
|
{
|
|
|
|
$this->be($this->user());
|
|
|
|
$args = [
|
|
'start' => '2012-01-01',
|
|
'end' => '2012-04-01',
|
|
];
|
|
|
|
// if date range is > 50, should have flash.
|
|
$response = $this->call('POST', '/daterange', $args);
|
|
$this->assertEquals(200, $response->status());
|
|
$this->assertSessionHas('warning', '91 days of data may take a while to load.');
|
|
}
|
|
|
|
} |