This fixes the tests.

This commit is contained in:
James Cole
2017-07-15 22:41:57 +02:00
parent fa00ba2edd
commit 1d6ca91c01
5 changed files with 3 additions and 82 deletions

View File

@@ -207,21 +207,6 @@ class JsonControllerTest extends TestCase
$response->assertExactJson([$category->name]);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::endTour
*/
public function testEndTour()
{
// mock stuff
$journalRepos = $this->mock(JournalRepositoryInterface::class);
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
$this->be($this->user());
$response = $this->post(route('json.end-tour'));
$response->assertStatus(200);
$response->assertExactJson(['true']);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::expenseAccounts
*/
@@ -280,20 +265,6 @@ class JsonControllerTest extends TestCase
$response->assertExactJson([$tag->tag]);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::tour
*/
public function testTour()
{
// mock stuff
$journalRepos = $this->mock(JournalRepositoryInterface::class);
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
$this->be($this->user());
$response = $this->get(route('json.tour'));
$response->assertStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\JsonController::transactionJournals
*/