Skip to content

Commit 200bd34

Browse files
committed
Translation fixed
1 parent 046cf67 commit 200bd34

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ before_install:
3737
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
3838
- chmod +x ./cc-test-reporter
3939
- ./cc-test-reporter before-build
40-
- composer global require hirak/prestissimo --update-no-dev
4140

4241
install:
4342
- composer require "illuminate/contracts:${LARAVEL_VERSION}" --no-update --no-interaction --prefer-dist
File renamed without changes.

tests/ZipContentTest.php

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ public function test_returns_true_when_required_string_list_of_files_exist()
2828
);
2929
}
3030

31+
public function test_default_error_from_translations()
32+
{
33+
$rule = new ZipContent([
34+
'dummy.pdf',
35+
'image_2.png',
36+
'folder_1/text_file.png',
37+
]);
38+
39+
$this->assertFalse($rule->passes('attribute', $this->uploadedFile));
40+
$this->assertSame(
41+
'Following files in ZIP archive do not meet requirements: image_2.png, folder_1/text_file.png',
42+
$rule->message()
43+
);
44+
}
45+
3146
public function test_returns_false_when_required_list_of_files_do_not_exist()
3247
{
3348
Lang::addLines([

0 commit comments

Comments
 (0)