/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/testsuite/Magento/Webapi/Controller/SoapTest.php
57 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
<?php /** * Copyright 2017 Adobe * All Rights Reserved. */ namespace Magento\Webapi\Controller; /** * Test for Magento\Webapi\Controller\Soap class. */ class SoapTest extends \PHPUnit\Framework\TestCase { /** * @var \Magento\Webapi\Controller\Soap */ protected $soapController; /** * @var \Magento\Framework\ObjectManagerInterface */ protected $objectManager; protected function setUp(): void { $this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); $this->soapController = $this->objectManager->get(\Magento\Webapi\Controller\Soap::class); } /** * Get the public wsdl with anonymous credentials * * @return void */ public function testDispatchWsdlRequest(): void { $request = $this->objectManager->get(\Magento\Framework\Webapi\Request::class); $request->setParam(\Magento\Webapi\Model\Soap\Server::REQUEST_PARAM_LIST_WSDL, true); $response = $this->soapController->dispatch($request); $decodedWsdl = json_decode($response->getContent(), true); $this->assertWsdlServices($decodedWsdl); } /** * Check wsdl available methods. * * @param array $decodedWsdl * * @return void */ protected function assertWsdlServices(array $decodedWsdl): void { $this->assertArrayHasKey('customerAccountManagementV1', $decodedWsdl); $this->assertArrayHasKey('integrationAdminTokenServiceV1', $decodedWsdl); } }