Skip to content

Commit

Permalink
ref #90088 fix test
Browse files Browse the repository at this point in the history
update Dockerfile
  • Loading branch information
Ivan Chaplygin committed Jun 5, 2023
1 parent e4cfdd8 commit ef6d09c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 4 additions & 3 deletions tests/admin/ControllerRetailcrmAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ public function testGetAvailableTypes()
$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']);
Expand Down Expand Up @@ -91,7 +92,7 @@ private function getDataForTestAvailableTypes(): array
'code' => 'test3'
],
'test4' => [
'active' => 'true',
'active' => true,
'sites' => ['cms1', 'cms2', 'opencart'],
'code' => 'test4'
]
Expand Down

0 comments on commit ef6d09c

Please sign in to comment.