Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
This fixes the tests.
James Cole69c5c93353f4
diff --git a/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php b/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.phpindex 4e4e5982fc..0555d656bd 100644--- a/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php+++ b/tests/acceptance/Controllers/Admin/ConfigurationControllerTest.php@@ -50,6 +50,13 @@ class ConfigurationControllerTest extends TestCaseFireflyConfig::shouldReceive('get')->withArgs(['must_confirm_account', false])->once()->andReturn($falseConfig);FireflyConfig::shouldReceive('get')->withArgs(['is_demo_site', false])->once()->andReturn($falseConfig);+ // new settings:+ FireflyConfig::shouldReceive('get')->withArgs(['mail_for_lockout', false])->once()->andReturn($falseConfig);+ FireflyConfig::shouldReceive('get')->withArgs(['mail_for_blocked_domain', false])->once()->andReturn($falseConfig);+ FireflyConfig::shouldReceive('get')->withArgs(['mail_for_blocked_email', false])->once()->andReturn($falseConfig);+ FireflyConfig::shouldReceive('get')->withArgs(['mail_for_bad_login', false])->once()->andReturn($falseConfig);+ FireflyConfig::shouldReceive('get')->withArgs(['mail_for_blocked_login', false])->once()->andReturn($falseConfig);+$this->call('GET', route('admin.configuration.index'));$this->assertResponseStatus(200);@@ -66,6 +73,11 @@ class ConfigurationControllerTest extends TestCaseFireflyConfig::shouldReceive('set')->withArgs(['single_user_mode', false])->once();FireflyConfig::shouldReceive('set')->withArgs(['must_confirm_account', false])->once();FireflyConfig::shouldReceive('set')->withArgs(['is_demo_site', false])->once();+ FireflyConfig::shouldReceive('set')->withArgs(['mail_for_lockout', false])->once();+ FireflyConfig::shouldReceive('set')->withArgs(['mail_for_blocked_domain', false])->once();+ FireflyConfig::shouldReceive('set')->withArgs(['mail_for_blocked_email', false])->once();+ FireflyConfig::shouldReceive('set')->withArgs(['mail_for_bad_login', false])->once();+ FireflyConfig::shouldReceive('set')->withArgs(['mail_for_blocked_login', false])->once();$this->be($this->user());$this->call('POST', route('admin.configuration.index.post'));