be($this->user()); $this->call('GET', '/preferences'); $this->assertResponseStatus(200); } /** * @covers FireflyIII\Http\Controllers\PreferencesController::postIndex */ public function testPostIndex($range) { $args = [ 'frontPageAccounts' => [1], 'viewRange' => $range, 'budgetMaximum' => 100, 'customFiscalYear' => 1, 'fiscalYearStart' => '01-01', 'language' => 'en_US', ]; $this->be($this->user()); $this->call('POST', '/preferences', $args); $this->assertResponseStatus(302); $this->assertSessionHas('success'); } }