@@ -64,11 +64,12 @@ public function test_it_creates_media_for_unmatched_files_non_recursively()
64
64
65
65
public function test_it_skips_files_of_unmatched_aggregate_type ()
66
66
{
67
- $ this ->markTestIncomplete ('working locally, failing in Travis. Need to investigate further. ' );
68
67
$ artisan = $ this ->getArtisan ();
69
68
$ filesystem = app (\Illuminate \Filesystem \FilesystemManager::class);
69
+ /** @var \Plank\Mediable\MediaUploader $uploader */
70
70
$ uploader = app ('mediable.uploader ' );
71
71
$ uploader ->setAllowUnrecognizedTypes (false );
72
+ $ uploader ->setAllowedAggregateTypes (['image ' ]);
72
73
$ command = new ImportMediaCommand ($ filesystem , $ uploader );
73
74
74
75
$ media = factory (Media::class)->make (['disk ' => 'tmp ' , 'extension ' => 'foo ' , 'mime_type ' => 'bar ' ]);
@@ -82,7 +83,6 @@ public function test_it_skips_files_of_unmatched_aggregate_type()
82
83
83
84
public function test_it_updates_existing_media ()
84
85
{
85
- $ this ->markTestIncomplete ('working locally, sporadically failing in Travis. Need to investigate further. ' );
86
86
$ artisan = $ this ->getArtisan ();
87
87
$ media1 = factory (Media::class)->create ([
88
88
'disk ' => 'tmp ' ,
@@ -95,7 +95,7 @@ public function test_it_updates_existing_media()
95
95
'disk ' => 'tmp ' ,
96
96
'filename ' => 'bar ' ,
97
97
'extension ' => 'png ' ,
98
- 'size ' => 8444 ,
98
+ 'size ' => 7173 ,
99
99
'mime_type ' => 'image/png ' ,
100
100
'aggregate_type ' => 'image '
101
101
]);
0 commit comments