diff --git a/composer.json b/composer.json index e601d55..76b250f 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,11 @@ "Bkwld\\Croppa\\": "src/" } }, + "autoload-dev": { + "psr-4": { + "Bkwld\\Croppa\\Test\\": "tests" + } + }, "minimum-stability": "dev", "prefer-stable": true, "extra": { @@ -41,7 +46,7 @@ "Bkwld\\Croppa\\CroppaServiceProvider" ], "aliases": { - "Croppa": "Bkwld\\Croppa\\Facade" + "Croppa": "Bkwld\\Croppa\\Facades\\Croppa" } } } diff --git a/tests/TestDelete.php b/tests/TestDelete.php index 37326fe..23d37e4 100644 --- a/tests/TestDelete.php +++ b/tests/TestDelete.php @@ -1,10 +1,13 @@ url = new URL([ 'path' => 'uploads/(.*)$', 'filters' => [ - 'gray' => Bkwld\Croppa\Filters\BlackWhite::class, - 'darkgray' => Bkwld\Croppa\Filters\Darkgray::class, - 'blur' => Bkwld\Croppa\Filters\Blur::class, - 'negative' => Bkwld\Croppa\Filters\Negative::class, - 'orange' => Bkwld\Croppa\Filters\OrangeWarhol::class, - 'turquoise' => Bkwld\Croppa\Filters\TurquoiseWarhol::class, + 'gray' => BlackWhite::class, + 'darkgray' => Darkgray::class, + 'blur' => Blur::class, + 'negative' => Negative::class, + 'orange' => OrangeWarhol::class, + 'turquoise' => TurquoiseWarhol::class, ], ]); } @@ -77,8 +85,8 @@ public function testFilters() { $this->assertEquals([ '1/2/file.jpg', 200, 100, ['filters' => [ - new Bkwld\Croppa\Filters\Blur(), - new Bkwld\Croppa\Filters\Negative(), + new Blur(), + new Negative(), ]], ], $this->url->parse('uploads/1/2/file-200x100-filters(blur,negative).jpg')); }