Use ::class calls

parent 075587ce
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
namespace Modules\Media\Tests; namespace Modules\Media\Tests;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\App;
use Modules\Media\Image\Imagy; use Modules\Media\Image\Imagy;
use Modules\Media\Image\Intervention\InterventionFactory; use Modules\Media\Image\Intervention\InterventionFactory;
...@@ -15,11 +17,11 @@ class ImagyTest extends MediaTestCase ...@@ -15,11 +17,11 @@ class ImagyTest extends MediaTestCase
*/ */
protected $imagy; protected $imagy;
/** /**
* @var \Illuminate\Filesystem\Filesystem * @var Filesystem
*/ */
protected $finder; protected $finder;
/** /**
* @var \Illuminate\Contracts\Config\Repository * @var Repository
*/ */
protected $config; protected $config;
/** /**
...@@ -34,8 +36,8 @@ class ImagyTest extends MediaTestCase ...@@ -34,8 +36,8 @@ class ImagyTest extends MediaTestCase
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();
$this->config = App::make('Illuminate\Contracts\Config\Repository'); $this->config = App::make(Repository::class);
$this->finder = App::make('Illuminate\Filesystem\Filesystem'); $this->finder = App::make(Filesystem::class);
$this->imagy = new Imagy(new InterventionFactory(), app(ThumbnailManager::class), $this->config); $this->imagy = new Imagy(new InterventionFactory(), app(ThumbnailManager::class), $this->config);
$this->testbenchPublicPath = __DIR__ . '/../../../vendor/orchestra/testbench-core/fixture/public/'; $this->testbenchPublicPath = __DIR__ . '/../../../vendor/orchestra/testbench-core/fixture/public/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment