diff --git a/tests/UploadcareAdapterTest.php b/tests/UploadcareAdapterTest.php index e295007..6cc49b2 100644 --- a/tests/UploadcareAdapterTest.php +++ b/tests/UploadcareAdapterTest.php @@ -7,7 +7,6 @@ use Uploadcare\Configuration; use Vormkracht10\UploadcareAdapter\UploadcareAdapter; - beforeEach(function () { $this->api = new Api(Configuration::create('demopublickey', 'demosecretkey')); @@ -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(); @@ -59,4 +58,4 @@ $files = $this->uploadcareAdapter->listContents(); expect($files)->toBeIterable(); -}); \ No newline at end of file +});