From 3a8e2d69869c2dea4487f44ef991d09a0f5886e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=BCbner?= Date: Wed, 24 May 2017 16:30:06 +0200 Subject: [PATCH] Fix StlConvertorTest --- tests/Service/Stl/StlConvertor/StlConvertorTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Service/Stl/StlConvertor/StlConvertorTest.php b/tests/Service/Stl/StlConvertor/StlConvertorTest.php index e678c9e..db6a8be 100644 --- a/tests/Service/Stl/StlConvertor/StlConvertorTest.php +++ b/tests/Service/Stl/StlConvertor/StlConvertorTest.php @@ -5,10 +5,6 @@ namespace Tests\AppBundle\Service\Stl; use AppBundle\Service\Stl\StlConverterService; use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; -use League\Flysystem\FilesystemInterface; -use org\bovigo\vfs\vfsStreamDirectory; -use org\bovigo\vfs\vfsStreamWrapper; -use PHPUnit\Framework\TestCase; use Tests\AppBundle\Service\BaseTest; class StlConvertorTest extends BaseTest @@ -20,8 +16,9 @@ class StlConvertorTest extends BaseTest public function setUp() { $ldview = $this->_container->getParameter('ldview_bin'); + $stlFixer = $this->get('service.stl.fixer'); - $this->stlConverter = new StlConverterService($ldview, $this->filesystem ); + $this->stlConverter = new StlConverterService($ldview, $this->filesystem, $stlFixer); $adapter = new Local(__DIR__.'/fixtures/ldraw'); $ldrawLibraryContext = new Filesystem($adapter);