We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 496a855 commit edf8d60Copy full SHA for edf8d60
dev/tests/integration/framework/Magento/TestFramework/TestCase/AbstractBackendController.php
@@ -41,6 +41,13 @@ abstract class AbstractBackendController extends \Magento\TestFramework\TestCase
41
*/
42
protected $httpMethod;
43
44
+ /**
45
+ * Expected no access response
46
+ *
47
+ * @var int
48
+ */
49
+ protected $expectedNoAccessResponse = 403;
50
+
51
/**
52
* @inheritDoc
53
*
@@ -130,6 +137,6 @@ public function testAclNoAccess()
130
137
->getAcl()
131
138
->deny(null, $this->resource);
132
139
$this->dispatch($this->uri);
133
- $this->assertSame(403, $this->getResponse()->getHttpResponseCode());
140
+ $this->assertSame($this->expectedNoAccessResponse, $this->getResponse()->getHttpResponseCode());
134
141
}
135
142
0 commit comments