Skip to content

Commit

Permalink
Merge pull request #25 from meemalabs/fix-test-cases
Browse files Browse the repository at this point in the history
fix: test cases
  • Loading branch information
glennmichael123 authored Aug 17, 2021
2 parents 5c4f661 + 60c41c9 commit a1b27c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Converters/MediaConvert.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function withThumbnails(int $framerateNumerator, int $framerateDenominato
*/
public function saveTo(string $s3Path, $s3bucket = null): MediaConvert
{
$destination = 's3://'.($s3bucket ?? config('filesystems.disks.s3.bucket')).$s3Path;
$destination = 's3://'.($s3bucket ?? config('filesystems.disks.s3.bucket')).'/'.$s3Path;

$this->jobSettings['OutputGroups'][0]['OutputGroupSettings']['FileGroupSettings']['Destination'] = $destination.'/thumbnails/';
$this->jobSettings['OutputGroups'][1]['OutputGroupSettings']['FileGroupSettings']['Destination'] = $destination.'/mp4/';
Expand Down
2 changes: 1 addition & 1 deletion tests/MediaConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
->withThumbnails(1, 2, 3, 100)
->saveTo($outputName, $bucket);

$destination = 's3://test-bucket';
$destination = 's3://test-bucket'.'/'.$outputName;

$this->assertEquals($converter->jobSettings['OutputGroups'][0]['OutputGroupSettings']['FileGroupSettings']['Destination'], $destination.'/thumbnails/');
$this->assertEquals($converter->jobSettings['OutputGroups'][1]['OutputGroupSettings']['FileGroupSettings']['Destination'], $destination.'/mp4/');
Expand Down

0 comments on commit a1b27c1

Please sign in to comment.