Skip to content

Commit edf8d60

Browse files
author
Joan He
committed
MC-22176: Implement granular ACL for B2B related store configurations
1 parent 496a855 commit edf8d60

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/tests/integration/framework/Magento/TestFramework/TestCase/AbstractBackendController.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ abstract class AbstractBackendController extends \Magento\TestFramework\TestCase
4141
*/
4242
protected $httpMethod;
4343

44+
/**
45+
* Expected no access response
46+
*
47+
* @var int
48+
*/
49+
protected $expectedNoAccessResponse = 403;
50+
4451
/**
4552
* @inheritDoc
4653
*
@@ -130,6 +137,6 @@ public function testAclNoAccess()
130137
->getAcl()
131138
->deny(null, $this->resource);
132139
$this->dispatch($this->uri);
133-
$this->assertSame(403, $this->getResponse()->getHttpResponseCode());
140+
$this->assertSame($this->expectedNoAccessResponse, $this->getResponse()->getHttpResponseCode());
134141
}
135142
}

0 commit comments

Comments
 (0)