Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit b0382ec

Browse files
author
Joan He
committed
MC-22176: Implement granular ACL for B2B related store configurations
1 parent 5255edd commit b0382ec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class AbstractBackendController extends \Magento\TestFramework\TestCase
4646
*
4747
* @var int
4848
*/
49-
protected $expectedNoAccessResponse = 403;
49+
protected $expectedNoAccessResponseCode = 403;
5050

5151
/**
5252
* @inheritDoc
@@ -103,9 +103,8 @@ public function testAclHasAccess()
103103
$this->getRequest()->setMethod($this->httpMethod);
104104
}
105105
$this->dispatch($this->uri);
106-
$this->assertNotSame(403, $this->getResponse()->getHttpResponseCode());
107106
$this->assertNotSame(404, $this->getResponse()->getHttpResponseCode());
108-
$this->assertNotSame($this->expectedNoAccessResponse, $this->getResponse()->getHttpResponseCode());
107+
$this->assertNotSame($this->expectedNoAccessResponseCode, $this->getResponse()->getHttpResponseCode());
109108
}
110109

111110
/**
@@ -123,6 +122,6 @@ public function testAclNoAccess()
123122
->getAcl()
124123
->deny(null, $this->resource);
125124
$this->dispatch($this->uri);
126-
$this->assertSame($this->expectedNoAccessResponse, $this->getResponse()->getHttpResponseCode());
125+
$this->assertSame($this->expectedNoAccessResponseCode, $this->getResponse()->getHttpResponseCode());
127126
}
128127
}

0 commit comments

Comments
 (0)