Add more front-end controllers, language file cleanup

This commit is contained in:
Dane Everitt 2017-09-03 16:32:52 -05:00
parent 4532811fcd
commit 54554465f2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
59 changed files with 1100 additions and 336 deletions

View file

@ -99,7 +99,7 @@ class InstallScriptUpdateServiceTest extends TestCase
$this->service->handle($this->model, $this->data);
} catch (Exception $exception) {
$this->assertInstanceOf(InvalidCopyFromException::class, $exception);
$this->assertEquals(trans('admin/exceptions.service.options.invalid_copy_id'), $exception->getMessage());
$this->assertEquals(trans('exceptions.service.options.invalid_copy_id'), $exception->getMessage());
}
}

View file

@ -116,7 +116,7 @@ class OptionCreationServiceTest extends TestCase
$this->service->handle(['config_from' => 1]);
} catch (Exception $exception) {
$this->assertInstanceOf(NoParentConfigurationFoundException::class, $exception);
$this->assertEquals(trans('admin/exceptions.service.options.must_be_child'), $exception->getMessage());
$this->assertEquals(trans('exceptions.service.options.must_be_child'), $exception->getMessage());
}
}
}

View file

@ -80,7 +80,7 @@ class OptionDeletionServiceTest extends TestCase
$this->service->handle(1);
} catch (\Exception $exception) {
$this->assertInstanceOf(HasActiveServersException::class, $exception);
$this->assertEquals(trans('admin/exceptions.service.options.delete_has_servers'), $exception->getMessage());
$this->assertEquals(trans('exceptions.service.options.delete_has_servers'), $exception->getMessage());
}
}
}

View file

@ -103,7 +103,7 @@ class OptionUpdateServiceTest extends TestCase
$this->service->handle($this->model, ['config_from' => 1]);
} catch (Exception $exception) {
$this->assertInstanceOf(NoParentConfigurationFoundException::class, $exception);
$this->assertEquals(trans('admin/exceptions.service.options.must_be_child'), $exception->getMessage());
$this->assertEquals(trans('exceptions.service.options.must_be_child'), $exception->getMessage());
}
}

View file

@ -86,7 +86,7 @@ class ServiceDeletionServiceTest extends TestCase
$this->service->handle(1);
} catch (Exception $exception) {
$this->assertInstanceOf(HasActiveServersException::class, $exception);
$this->assertEquals(trans('admin/exceptions.service.delete_has_servers'), $exception->getMessage());
$this->assertEquals(trans('exceptions.service.delete_has_servers'), $exception->getMessage());
}
}

View file

@ -116,7 +116,7 @@ class VariableUpdateServiceTest extends TestCase
$this->service->handle($this->model, ['env_variable' => 'TEST_VAR_123']);
} catch (Exception $exception) {
$this->assertInstanceOf(DisplayException::class, $exception);
$this->assertEquals(trans('admin/exceptions.service.variables.env_not_unique', [
$this->assertEquals(trans('exceptions.service.variables.env_not_unique', [
'name' => 'TEST_VAR_123',
]), $exception->getMessage());
}