diff --git a/core/lib/Thelia/Tests/Controller/ControllerTestBase.php b/core/lib/Thelia/Tests/Controller/ControllerTestBase.php index ab596a1fb..c601360c2 100644 --- a/core/lib/Thelia/Tests/Controller/ControllerTestBase.php +++ b/core/lib/Thelia/Tests/Controller/ControllerTestBase.php @@ -81,11 +81,11 @@ abstract class ControllerTestBase extends \PHPUnit_Framework_TestCase /** * @return \Thelia\Controller\BaseController The controller you want to test */ - abstract function getController(); + abstract protected function getController(); /** * Use this method to build the container with the services that you need. */ - abstract function buildContainer(ContainerBuilder $container); + abstract protected function buildContainer(ContainerBuilder $container); } \ No newline at end of file diff --git a/core/lib/Thelia/Tests/Controller/ImportControllerTest.php b/core/lib/Thelia/Tests/Controller/ImportControllerTest.php new file mode 100644 index 000000000..42d278b6a --- /dev/null +++ b/core/lib/Thelia/Tests/Controller/ImportControllerTest.php @@ -0,0 +1,32 @@ + + */ +class ImportControllerTest extends ImportExportControllerTest +{ + /** + * @return \Thelia\Controller\BaseController The controller you want to test + */ + protected function getController() + { + return new ImportController(); + } + + +} \ No newline at end of file diff --git a/core/lib/Thelia/Tests/Controller/ImportExportControllerTest.php b/core/lib/Thelia/Tests/Controller/ImportExportControllerTest.php index d1af6900e..5af6ce61d 100644 --- a/core/lib/Thelia/Tests/Controller/ImportExportControllerTest.php +++ b/core/lib/Thelia/Tests/Controller/ImportExportControllerTest.php @@ -12,7 +12,6 @@ namespace Thelia\Tests\Controller; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Thelia\Controller\Admin\ImportController; use Thelia\Core\FileFormat\Archive\ArchiveBuilder\TarArchiveBuilder; use Thelia\Core\FileFormat\Archive\ArchiveBuilder\TarBz2ArchiveBuilder; use Thelia\Core\FileFormat\Archive\ArchiveBuilder\TarGzArchiveBuilder; @@ -28,13 +27,13 @@ use Thelia\Core\FileFormat\Formatting\FormatterManager; * @package Thelia\Tests\Controller * @author Benjamin Perche */ -abstract class ControllerExportControllerTest extends ControllerTestBase +abstract class ImportExportControllerTest extends ControllerTestBase { /** * @return mixed */ - function buildContainer(ContainerBuilder $container) + protected function buildContainer(ContainerBuilder $container) { $archiveBuilderManager = (new ArchiveBuilderManager("dev")) ->add(new ZipArchiveBuilder())