Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #41

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Models/MediaConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @method static \Illuminate\Database\Eloquent\Builder|MediaConversion wherePercentageCompleted($value)
* @method static \Illuminate\Database\Eloquent\Builder|MediaConversion whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|MediaConversion whereUpdatedAt($value)
*
* @mixin \Eloquent
*/
class MediaConversion extends Model
Expand Down
20 changes: 10 additions & 10 deletions tests/MediaConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@
$this->assertEquals($response['Job']['Id'], $jobId);
});

it('can successfully cancel a job', function () {
$job = MediaConvert::createJob($this->jobSettings, []);
it('can successfully cancel a job', function () {
$job = MediaConvert::createJob($this->jobSettings, []);

$response = MediaConvert::cancelJob($job['Job']['Id']);
$response = MediaConvert::cancelJob($job['Job']['Id']);

$this->assertEquals($response['@metadata']['statusCode'], 202);
});
$this->assertEquals($response['@metadata']['statusCode'], 202);
});

it('can successfully list jobs', function () {
$response = MediaConvert::listJobs([]);
it('can successfully list jobs', function () {
$response = MediaConvert::listJobs([]);

$this->assertEquals($response['@metadata']['statusCode'], 200);
$this->assertTrue(count($response) > 0);
});
$this->assertEquals($response['@metadata']['statusCode'], 200);
$this->assertTrue(count($response) > 0);
});