Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Casmo authored and github-actions[bot] committed Mar 28, 2023
1 parent 392e654 commit d236a6a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/UploadcareAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Uploadcare\Configuration;
use Vormkracht10\UploadcareAdapter\UploadcareAdapter;


beforeEach(function () {
$this->api = new Api(Configuration::create('demopublickey', 'demosecretkey'));

Expand All @@ -34,14 +33,14 @@
expect($exists)->toBeFalse();
});

it('writes streams and returns uuid', function() {
it('writes streams and returns uuid', function () {
$uuid = $this->uploadcareAdapter->writeStreamGetUuid('filename.txt', tmpfile(), new Config());

expect($uuid)->toBeString();
});

it('writes uploadedfile and returns uuid', function() {
$uploadedFile = new UploadedFile(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'files' . DIRECTORY_SEPARATOR . 'dummy.txt', 'dummy.txt');
it('writes uploadedfile and returns uuid', function () {
$uploadedFile = new UploadedFile(dirname(__FILE__).DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'dummy.txt', 'dummy.txt');
$uuid = $this->uploadcareAdapter->putGetUuid('filename.txt', $uploadedFile);

expect($uuid)->toBeString();
Expand All @@ -59,4 +58,4 @@
$files = $this->uploadcareAdapter->listContents();

expect($files)->toBeIterable();
});
});

0 comments on commit d236a6a

Please sign in to comment.