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()
69
69
70
70
/**
71
71
* Test Integration access token cannot be used as Bearer token by default
72
+ * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 0
72
73
*/
73
74
public function testIntegrationAsBearerTokenDefault ()
74
75
{
@@ -90,7 +91,6 @@ public function testIntegrationAsBearerTokenDefault()
90
91
/**
91
92
* Test Integration access token can be used as Bearer token when explicitly enabled
92
93
*
93
- * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
94
94
* @doesNotPerformAssertions
95
95
*/
96
96
public function testIntegrationAsBearerTokenEnabled ()
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ protected function setUp(): void
35
35
parent ::setUp ();
36
36
}
37
37
38
+ /**
39
+ * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 0
40
+ */
38
41
public function testDisabledIntegrationAsBearer ()
39
42
{
40
43
$ wsdlUrl = $ this ->_getBaseWsdlUrl () . 'testModule5AllSoapAndRestV1,testModule5AllSoapAndRestV2 ' ;
@@ -65,9 +68,6 @@ public function testAuthenticationWithOAuth()
65
68
$ this ->checkAll ($ wsdlContent );
66
69
}
67
70
68
- /**
69
- * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
70
- */
71
71
public function testMultiServiceWsdl ()
72
72
{
73
73
$ this ->_soapUrl = "{$ this ->_baseUrl }/soap/ {$ this ->_storeCode }"
@@ -79,9 +79,6 @@ public function testMultiServiceWsdl()
79
79
$ this ->checkAll ($ wsdlContent );
80
80
}
81
81
82
- /**
83
- * @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
84
- */
85
82
public function testSingleServiceWsdl ()
86
83
{
87
84
$ this ->_soapUrl = "{$ this ->_baseUrl }/soap/ {$ this ->_storeCode }?services=testModule5AllSoapAndRestV2 " ;
You can’t perform that action at this time.
0 commit comments