data = '1M'; $this->be($pref->user); // CURRENCY: $currency = new TransactionCurrency; Preferences::shouldReceive('get', 'viewRange')->andReturn($pref); Amount::shouldReceive('getDefaultCurrency')->andReturn($currency); Amount::shouldReceive('getAllCurrencies')->andReturn([$currency]); $this->call('GET', '/accounts/create/asset'); $this->assertResponseOk(); $this->assertViewHas('subTitle', 'Create a new asset account'); $this->assertViewHas('subTitleIcon', 'fa-money'); $this->assertViewHas('what', 'asset'); } public function testDelete() { // fake an account. $account = FactoryMuffin::create('FireflyIII\Models\Account'); $account->accountType->type = 'Asset account'; $account->accountType->save(); $this->be($account->user); $this->call('GET', '/accounts/delete/' . $account->id); $this->assertResponseOk(); $this->assertViewHas('subTitle', 'Delete ' . strtolower(e($account->accountType->type)) . ' "' . e($account->name) . '"'); } public function testDestroy() { $this->markTestIncomplete(); } public function testEdit() { $this->markTestIncomplete(); } public function testIndex() { $this->markTestIncomplete(); } public function testShow() { $this->markTestIncomplete(); } public function testStore() { $this->markTestIncomplete(); } public function testUpdate() { $this->markTestIncomplete(); } }