ref #90088 fix test

update Dockerfile
This commit is contained in:
Ivan Chaplygin 2023-06-05 17:18:10 +03:00
parent e4cfdd8c9f
commit ef6d09c03a
2 changed files with 5 additions and 4 deletions

View File

@ -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 \

View File

@ -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'
]