Exemplo n.º 1
0
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->config = App::make('Illuminate\\Contracts\\Config\\Repository');
     $module = App::make('modules');
     $this->finder = App::make('Illuminate\\Filesystem\\Filesystem');
     $this->imagy = new Imagy(new InterventionFactory(), new ThumbnailsManager($this->config, $module), $this->config);
     $this->testbenchPublicPath = __DIR__ . '/../vendor/orchestra/testbench/fixture/public/';
     $this->mediaPath = __DIR__ . '/Fixtures/';
     $this->finder->copy("{$this->mediaPath}google-map.png", "{$this->testbenchPublicPath}google-map.png");
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $this->thumbnailManager = new ThumbnailsManager(app('config'));
 }