This should fix tests

This commit is contained in:
James Cole
2017-03-16 20:46:18 +01:00
parent d618ddc8c5
commit 2db8d25038
9 changed files with 147 additions and 51 deletions

View File

@@ -38,6 +38,7 @@ class PreferencesControllerTest extends TestCase
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
$google->shouldReceive('generateSecretKey')->andReturn('secret');
$google->shouldReceive('getQRCodeInline')->andReturn('long-data-url');
$this->be($this->user());
$response = $this->get(route('preferences.code'));
$response->assertStatus(200);