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
59 changed files with 1100 additions and 336 deletions

View File

@@ -152,7 +152,7 @@ class PackCreationServiceTest extends TestCase
$this->service->handle([], $this->file);
} catch (Exception $exception) {
$this->assertInstanceOf(InvalidFileUploadException::class, $exception);
$this->assertEquals(trans('admin/exceptions.packs.invalid_upload'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.invalid_upload'), $exception->getMessage());
}
}
@@ -169,7 +169,7 @@ class PackCreationServiceTest extends TestCase
try {
$this->service->handle([], $this->file);
} catch (InvalidFileMimeTypeException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.invalid_mime', [
$this->assertEquals(trans('exceptions.packs.invalid_mime', [
'type' => implode(', ', PackCreationService::VALID_UPLOAD_TYPES),
]), $exception->getMessage());
}

View File

@@ -130,7 +130,7 @@ class PackDeletionServiceTest extends TestCase
try {
$this->service->handle($model);
} catch (HasActiveServersException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.delete_has_servers'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.delete_has_servers'), $exception->getMessage());
}
}
}

View File

@@ -90,7 +90,7 @@ class PackUpdateServiceTest extends TestCase
try {
$this->service->handle($model, ['option_id' => 0]);
} catch (HasActiveServersException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.update_has_servers'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.update_has_servers'), $exception->getMessage());
}
}

View File

@@ -128,7 +128,7 @@ class TemplateUploadServiceTest extends TestCase
try {
$this->service->handle(1, $this->file);
} catch (InvalidFileUploadException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.invalid_upload'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.invalid_upload'), $exception->getMessage());
}
}
@@ -145,7 +145,7 @@ class TemplateUploadServiceTest extends TestCase
try {
$this->service->handle(1, $this->file);
} catch (InvalidFileMimeTypeException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.invalid_mime', [
$this->assertEquals(trans('exceptions.packs.invalid_mime', [
'type' => implode(', ', TemplateUploadService::VALID_UPLOAD_TYPES),
]), $exception->getMessage());
}
@@ -165,7 +165,7 @@ class TemplateUploadServiceTest extends TestCase
try {
$this->service->handle(1, $this->file);
} catch (UnreadableZipArchiveException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.unreadable'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.unreadable'), $exception->getMessage());
}
}
@@ -190,7 +190,7 @@ class TemplateUploadServiceTest extends TestCase
try {
$this->service->handle(1, $this->file);
} catch (InvalidPackArchiveFormatException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.invalid_archive_exception'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.invalid_archive_exception'), $exception->getMessage());
}
}
@@ -214,7 +214,7 @@ class TemplateUploadServiceTest extends TestCase
try {
$this->service->handle(1, $this->file);
} catch (ZipExtractionException $exception) {
$this->assertEquals(trans('admin/exceptions.packs.zip_extraction'), $exception->getMessage());
$this->assertEquals(trans('exceptions.packs.zip_extraction'), $exception->getMessage());
}
}