Add more front-end controllers, language file cleanup
This commit is contained in:
parent
4532811fcd
commit
54554465f2
59 changed files with 1100 additions and 336 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue