File tree Expand file tree Collapse file tree 3 files changed +20
-7
lines changed
_files/Magento/TestModule1/etc Expand file tree Collapse file tree 3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Store:etc/config.xsd" >
9+ <default >
10+ <oauth >
11+ <consumer >
12+ <enable_integration_as_bearer >1</enable_integration_as_bearer >
13+ </consumer >
14+ </oauth >
15+ </default >
16+ </config >
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public function testGetServiceCall()
6969
7070 /**
7171 * Test Integration access token cannot be used as Bearer token by default
72+ * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 0
7273 */
7374 public function testIntegrationAsBearerTokenDefault ()
7475 {
@@ -90,7 +91,6 @@ public function testIntegrationAsBearerTokenDefault()
9091 /**
9192 * Test Integration access token can be used as Bearer token when explicitly enabled
9293 *
93- * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
9494 * @doesNotPerformAssertions
9595 */
9696 public function testIntegrationAsBearerTokenEnabled ()
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ protected function setUp(): void
3535 parent ::setUp ();
3636 }
3737
38+ /**
39+ * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 0
40+ */
3841 public function testDisabledIntegrationAsBearer ()
3942 {
4043 $ wsdlUrl = $ this ->_getBaseWsdlUrl () . 'testModule5AllSoapAndRestV1,testModule5AllSoapAndRestV2 ' ;
@@ -65,9 +68,6 @@ public function testAuthenticationWithOAuth()
6568 $ this ->checkAll ($ wsdlContent );
6669 }
6770
68- /**
69- * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
70- */
7171 public function testMultiServiceWsdl ()
7272 {
7373 $ this ->_soapUrl = "{$ this ->_baseUrl }/soap/ {$ this ->_storeCode }"
@@ -79,9 +79,6 @@ public function testMultiServiceWsdl()
7979 $ this ->checkAll ($ wsdlContent );
8080 }
8181
82- /**
83- * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
84- */
8582 public function testSingleServiceWsdl ()
8683 {
8784 $ this ->_soapUrl = "{$ this ->_baseUrl }/soap/ {$ this ->_storeCode }?services=testModule5AllSoapAndRestV2 " ;
You can’t perform that action at this time.
0 commit comments