mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-05 12:01:16 +00:00
Some code cleanup and fixes.
This commit is contained in:
@@ -118,8 +118,6 @@ class CategoryControllerTest extends TestCase
|
||||
$this->session(['start' => new Carbon, 'end' => new Carbon]);
|
||||
|
||||
|
||||
|
||||
|
||||
$this->_category->shouldReceive('journalsInRange')->once()->andReturn([]);
|
||||
$this->action('GET', 'CategoryController@show', $category->id);
|
||||
$this->assertResponseOk();
|
||||
@@ -136,7 +134,7 @@ class CategoryControllerTest extends TestCase
|
||||
public function testStoreFails()
|
||||
{
|
||||
$category = f::create('Category');
|
||||
unset($category->id);
|
||||
unset($category->name);
|
||||
$this->_repository->shouldReceive('store')->andReturn($category);
|
||||
$this->action('POST', 'CategoryController@store');
|
||||
$this->assertRedirectedToRoute('categories.create');
|
||||
|
Reference in New Issue
Block a user