Skip to content

Commit

Permalink
Apply fixes from StyleCI (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 authored Mar 14, 2021
1 parent ef2bad3 commit e227688
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/MediaConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
});

it('it can successfully create a job', function () {
$response = Meema\MediaConverter\Facades\MediaConvert::createJob($this->settings, []);
$response = Meema\MediaConverter\Facades\MediaConvert::createJob($this->settings, []);

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

it('it can successfully get a job', function () {
Expand All @@ -25,19 +25,19 @@

$this->assertEquals($response['@metadata']['statusCode'], 200);
$this->assertEquals($response['Job']['Id'], $jobId);
});
});

it('it can successfully cancel a job', function () {
$job = Meema\MediaConverter\Facades\MediaConvert::createJob($this->settings, []);
$job = Meema\MediaConverter\Facades\MediaConvert::createJob($this->settings, []);

$response = Meema\MediaConverter\Facades\MediaConvert::cancelJob($job['Job']['Id']);
$response = Meema\MediaConverter\Facades\MediaConvert::cancelJob($job['Job']['Id']);

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

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

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

0 comments on commit e227688

Please sign in to comment.