Skip to content

Commit 4143586

Browse files
author
Joan He
committed
MAGETWO-37981: fixed integration tests
1 parent 832b46f commit 4143586

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class AbstractBackendController extends \Magento\TestFramework\TestCase
3434
*
3535
* @var string
3636
*/
37-
protected $uri;
37+
protected $uri = null;
3838

3939
protected function setUp()
4040
{
@@ -88,12 +88,9 @@ public function assertSessionMessages(
8888

8989
public function testAclHasAccess()
9090
{
91-
if ($this->resource === null) {
92-
$this->markTestIncomplete('Acl test is not complete');
91+
if ($this->uri === null) {
92+
$this->markTestIncomplete('AclHasAccess test is not complete');
9393
}
94-
$this->_objectManager->get('Magento\Framework\Acl\Builder')
95-
->getAcl()
96-
->allow(null, $this->resource);
9794
$this->dispatch($this->uri);
9895
$this->assertNotSame(403, $this->getResponse()->getHttpResponseCode());
9996
}

0 commit comments

Comments
 (0)