mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
More cleanup.
This commit is contained in:
@@ -27,8 +27,8 @@ class ChartBudgetControllerTest extends TestCase
|
||||
$repository->shouldReceive('getFirstBudgetLimitDate')->once()->andReturn(new Carbon);
|
||||
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/chart/budget/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/chart/budget/1');
|
||||
$this->assertResponseStatus(200);
|
||||
//$this->markTestSkipped('Skipped because sqlite does not support DATE_FORMAT.');
|
||||
}
|
||||
|
||||
@@ -38,9 +38,9 @@ class ChartBudgetControllerTest extends TestCase
|
||||
public function testBudgetLimit()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/chart/budget/1/1');
|
||||
$this->call('GET', '/chart/budget/1/1');
|
||||
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -49,9 +49,9 @@ class ChartBudgetControllerTest extends TestCase
|
||||
public function testFrontpage()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/chart/budget/frontpage');
|
||||
$this->call('GET', '/chart/budget/frontpage');
|
||||
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,8 +70,8 @@ class ChartBudgetControllerTest extends TestCase
|
||||
$repository->shouldReceive('getBudgetsAndExpensesPerYear')->once()->andReturn([]);
|
||||
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/chart/budget/multi-year/default/20150101/20160101/1/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/chart/budget/multi-year/default/20150101/20160101/1/1');
|
||||
$this->assertResponseStatus(200);
|
||||
|
||||
}
|
||||
|
||||
@@ -84,8 +84,8 @@ class ChartBudgetControllerTest extends TestCase
|
||||
$repository->shouldReceive('getBudgetsAndExpensesPerMonth')->once()->andReturn([]);
|
||||
|
||||
$this->be($this->user());
|
||||
$response = $this->call('GET', '/chart/budget/year/default/20150101/20151231/1');
|
||||
$this->assertEquals(200, $response->status());
|
||||
$this->call('GET', '/chart/budget/year/default/20150101/20151231/1');
|
||||
$this->assertResponseStatus(200);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user