This repository was archived by the owner on Dec 19, 2019. It is now read-only.
File tree 1 file changed +3
-4
lines changed
dev/tests/integration/framework/Magento/TestFramework/TestCase 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ abstract class AbstractBackendController extends \Magento\TestFramework\TestCase
46
46
*
47
47
* @var int
48
48
*/
49
- protected $ expectedNoAccessResponse = 403 ;
49
+ protected $ expectedNoAccessResponseCode = 403 ;
50
50
51
51
/**
52
52
* @inheritDoc
@@ -103,9 +103,8 @@ public function testAclHasAccess()
103
103
$ this ->getRequest ()->setMethod ($ this ->httpMethod );
104
104
}
105
105
$ this ->dispatch ($ this ->uri );
106
- $ this ->assertNotSame (403 , $ this ->getResponse ()->getHttpResponseCode ());
107
106
$ this ->assertNotSame (404 , $ this ->getResponse ()->getHttpResponseCode ());
108
- $ this ->assertNotSame ($ this ->expectedNoAccessResponse , $ this ->getResponse ()->getHttpResponseCode ());
107
+ $ this ->assertNotSame ($ this ->expectedNoAccessResponseCode , $ this ->getResponse ()->getHttpResponseCode ());
109
108
}
110
109
111
110
/**
@@ -123,6 +122,6 @@ public function testAclNoAccess()
123
122
->getAcl ()
124
123
->deny (null , $ this ->resource );
125
124
$ this ->dispatch ($ this ->uri );
126
- $ this ->assertSame ($ this ->expectedNoAccessResponse , $ this ->getResponse ()->getHttpResponseCode ());
125
+ $ this ->assertSame ($ this ->expectedNoAccessResponseCode , $ this ->getResponse ()->getHttpResponseCode ());
127
126
}
128
127
}
You can’t perform that action at this time.
0 commit comments