mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-23 13:46:07 +03:00
parent
e4cfdd8c9f
commit
ef6d09c03a
@ -2,7 +2,7 @@ FROM php:7.1-apache
|
|||||||
|
|
||||||
RUN apt-get update
|
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-configure intl \
|
||||||
&& docker-php-ext-install intl \
|
&& docker-php-ext-install intl \
|
||||||
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
|
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
|
||||||
|
@ -48,11 +48,12 @@ class ControllerRetailcrmAdminTest extends TestCase
|
|||||||
$sites = $data['sites'];
|
$sites = $data['sites'];
|
||||||
$types = $data['types'];
|
$types = $data['types'];
|
||||||
|
|
||||||
$class = new ReflectionClass(ControllerExtensionModuleRetailcrm::class);
|
$retailCrm = new ControllerExtensionModuleRetailcrm(self::$registry);
|
||||||
|
$class = new ReflectionClass($retailCrm);
|
||||||
$method = $class->getMethod('getAvailableTypes');
|
$method = $class->getMethod('getAvailableTypes');
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
|
||||||
$result = $method->invokeArgs(ControllerExtensionModuleRetailcrm::class, [$sites, $types]);
|
$result = $method->invokeArgs($retailCrm, [$sites, $types]);
|
||||||
|
|
||||||
$this->assertNotEmpty($result['opencart']);
|
$this->assertNotEmpty($result['opencart']);
|
||||||
$this->assertNotEmpty($result['retailcrm']);
|
$this->assertNotEmpty($result['retailcrm']);
|
||||||
@ -91,7 +92,7 @@ class ControllerRetailcrmAdminTest extends TestCase
|
|||||||
'code' => 'test3'
|
'code' => 'test3'
|
||||||
],
|
],
|
||||||
'test4' => [
|
'test4' => [
|
||||||
'active' => 'true',
|
'active' => true,
|
||||||
'sites' => ['cms1', 'cms2', 'opencart'],
|
'sites' => ['cms1', 'cms2', 'opencart'],
|
||||||
'code' => 'test4'
|
'code' => 'test4'
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user