File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
dev/tests/api-functional/testsuite/Magento/Webapi Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Webapi ;
8
8
9
+ use Magento \Framework \Module \Manager ;
9
10
use Magento \TestFramework \Helper \Bootstrap ;
10
11
11
12
/**
14
15
class RestSessionCookieTest extends \Magento \TestFramework \TestCase \WebapiAbstract
15
16
{
16
17
18
+ private $ moduleManager ;
19
+ private $ objectManager ;
20
+
21
+ /**
22
+ * @inheritdoc
23
+ */
24
+ protected function setUp (): void
25
+ {
26
+ $ this ->objectManager = Bootstrap::getObjectManager ();
27
+ $ this ->moduleManager = $ this ->objectManager ->get (Manager::class);
28
+ if ($ this ->moduleManager ->isEnabled ('Magento_B2b ' )) {
29
+ $ this ->markTestSkipped ('Skipped, because this logic is rewritten on B2B. ' );
30
+ }
31
+ }
32
+
17
33
/**
18
34
* Check for non exist cookie PHPSESSID
19
35
*/
@@ -22,7 +38,7 @@ public function testRestSessionNoCookie()
22
38
$ this ->_markTestAsRestOnly ();
23
39
/** @var $curlClient CurlClientWithCookies */
24
40
25
- $ curlClient = Bootstrap:: getObjectManager ()
41
+ $ curlClient = $ this -> objectManager
26
42
->get (\Magento \TestFramework \TestCase \HttpClient \CurlClientWithCookies::class);
27
43
$ phpSessionCookieName =
28
44
[
You can’t perform that action at this time.
0 commit comments