Disable all kinds of tests until upgrades are complete.

This commit is contained in:
James Cole
2019-04-09 15:32:48 +02:00
parent 63070bffc3
commit 97726c3822
114 changed files with 1581 additions and 1205 deletions

View File

@@ -61,16 +61,15 @@ class PreferencesControllerTest extends TestCase
Preferences::shouldReceive('getForUser')->withArgs([Mockery::any(), $pref])->once();
}
// extra call for frontpage preference
$pref = new Preference;
$pref->data =[1];
Preferences::shouldReceive('getForUser')->withArgs([Mockery::any(), 'frontPageAccounts',[]])->once()
->andReturn($pref);
$pref = new Preference;
$pref->data = [1];
Preferences::shouldReceive('getForUser')->withArgs([Mockery::any(), 'frontPageAccounts', []])->once()
->andReturn($pref);
// mock calls to transformer:
$transformer->shouldReceive('setParameters')->withAnyArgs()->atLeast()->once();
// call API
$response = $this->get('/api/v1/preferences');
$response->assertStatus(200);