More cleanup.

This commit is contained in:
James Cole
2016-01-24 18:11:57 +01:00
parent 7b2fe8eb4a
commit a013553a6c
18 changed files with 227 additions and 225 deletions

View File

@@ -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);
}
}