diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 086f7c3..97cdf87 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -2,7 +2,7 @@ FROM php:7.1-apache RUN apt-get update -RUN apt-get install -y netcat zlib1g-dev libpq-dev git libicu-dev libxml2-dev libpng-dev libjpeg-dev libmcrypt-dev libxslt-dev libfreetype6-dev \ +RUN apt-get install -y netcat zlib1g-dev libpq-dev git libicu-dev libxml2-dev libpng-dev libjpeg-dev libmcrypt-dev libxslt-dev libfreetype6-dev unzip \ && docker-php-ext-configure intl \ && docker-php-ext-install intl \ && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ diff --git a/tests/admin/ControllerRetailcrmAdminTest.php b/tests/admin/ControllerRetailcrmAdminTest.php index de76d0e..fbd3d0e 100644 --- a/tests/admin/ControllerRetailcrmAdminTest.php +++ b/tests/admin/ControllerRetailcrmAdminTest.php @@ -48,11 +48,12 @@ class ControllerRetailcrmAdminTest extends TestCase $sites = $data['sites']; $types = $data['types']; - $class = new ReflectionClass(ControllerExtensionModuleRetailcrm::class); + $retailCrm = new ControllerExtensionModuleRetailcrm(self::$registry); + $class = new ReflectionClass($retailCrm); $method = $class->getMethod('getAvailableTypes'); $method->setAccessible(true); - $result = $method->invokeArgs(ControllerExtensionModuleRetailcrm::class, [$sites, $types]); + $result = $method->invokeArgs($retailCrm, [$sites, $types]); $this->assertNotEmpty($result['opencart']); $this->assertNotEmpty($result['retailcrm']); @@ -91,7 +92,7 @@ class ControllerRetailcrmAdminTest extends TestCase 'code' => 'test3' ], 'test4' => [ - 'active' => 'true', + 'active' => true, 'sites' => ['cms1', 'cms2', 'opencart'], 'code' => 'test4' ]