mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-24 09:13:45 +02:00
Add more front-end controllers, language file cleanup
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user