Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/local/services/tests/unit/ |
Upload File : |
<?php namespace Wbs24\Services; use Bitrix\Main\Loader; class MainTest extends BitrixTestCase { public function testGetUnboundItemsIds() { // входные параметры $productIds = [ 1, 4, ]; $productIdsToBasketItemIds = [ 1 => [101], 2 => [102], 3 => [103, 105], 4 => [104], ]; // результат для проверки $expectedResult = [ 102, 103, 105, ]; // заглушки // вычисление результата $result = $this->runProtectedMethod('Wbs24\\Services\\Main', 'getUnboundItemsIds', [ $productIds, $productIdsToBasketItemIds, ]); // проверка $this->assertEquals($expectedResult, $result); } }