<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * PHPUnit configuration for SOAP web API functional tests.
 *
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
         colors="true"
         columns="max"
         beStrictAboutTestsThatDoNotTestAnything="false"
         bootstrap="./framework/bootstrap.php">
	<!-- Test suites definition -->
	<testsuites>
		<testsuite name="Magento SOAP web API functional tests">
			<file>testsuite/Magento/WebApiTest.php</file>
		</testsuite>
		<testsuite name="Magento SOAP web API functional tests real suite">
			<directory>testsuite</directory>
			<!-- <exclude>testsuite/Magento/GraphQl</exclude> -->
			<directory>../../../app/code/*/*/Test/Api</directory>
		</testsuite>
	</testsuites>
	<!-- PHP INI settings and constants definition -->
	<php>
		<includePath>./testsuite</includePath>
		<const name="TESTS_INSTALL_CONFIG_FILE" value="config/install-config-mysql.php"/>
		<!-- Local XML post installation configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
		<const name="TESTS_POST_INSTALL_SETUP_COMMAND_CONFIG_FILE" value="config/post-install-setup-command-config.php"/>
		<const name="TESTS_GLOBAL_CONFIG_FILE" value="config/config-global.php"/>
		<!-- WebSerivice Type -->
		<const name="TESTS_WEB_API_ADAPTER" value="soap"/>
		<!-- Webserver URL -->
		<const name="TESTS_BASE_URL" value="http://magento.url"/>
		<!-- Webserver API user -->
		<const name="TESTS_WEBSERVICE_USER" value="admin"/>
		<!-- Webserver API key -->
		<const name="TESTS_WEBSERVICE_APIKEY" value="123123q"/>
		<!-- Define if debugger should be started using XDEBUG_SESSION cookie -->
		<const name="TESTS_XDEBUG_ENABLED" value="false"/>
		<!-- Define XDEBUG_SESSION cookie value-->
		<const name="TESTS_XDEBUG_SESSION" value="phpstorm"/>
		<ini name="date.timezone" value="America/Los_Angeles"/>
		<ini name="soap.wsdl_cache_enabled" value="0"/>
		<!-- Semicolon-separated 'glob' patterns, that match global XML configuration files -->
		<const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
		<!-- Whether to cleanup the application before running tests or not -->
		<const name="TESTS_CLEANUP" value="enabled"/>
		<!--Defines if Magento should be installed before tests execution-->
		<const name="TESTS_MAGENTO_INSTALLATION" value="disabled"/>
		<!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". -->
		<const name="TESTS_MAGENTO_MODE" value="default"/>
		<const name="USE_OVERRIDE_CONFIG" value="enabled"/>
	</php>
	<!-- Test listeners -->
	<extensions>
		<bootstrap class="Qameta\Allure\PHPUnit\AllureExtension">
            <!-- Path to config file (default is config/allure.config.php) -->
            <parameter name="config" value="allure/allure.config.php" />
        </bootstrap>
        <bootstrap class="Magento\TestFramework\Event\Subscribers"/>
	</extensions>
</phpunit>
