Skip to content

Commit

Permalink
Correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
astorm committed Jul 8, 2018
1 parent 2272e17 commit 6321774
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/fixtures/AdminClassName/BaseAdminArgs.php
@@ -0,0 +1,21 @@
<?php
namespace Pulsestorm\HelloWorld\Controller\Adminhtml\Index;
class Index extends \Magento\Backend\App\Action
{

const ADMIN_RESOURCE = 'some-acl-rule-name';

protected $resultPageFactory;
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\View\Result\PageFactory $resultPageFactory)
{
$this->resultPageFactory = $resultPageFactory;
parent::__construct($context);
}

public function execute()
{
return $this->resultPageFactory->create();
}
}
19 changes: 19 additions & 0 deletions tests/fixtures/AdminClassName/BaseFrontendArgs.php
@@ -0,0 +1,19 @@
<?php
namespace Pulsestorm\HelloWorld\Controller\Index;
class Index extends \Magento\Framework\App\Action\Action
{

protected $resultPageFactory;
public function __construct(
\Magento\Framework\App\Action\Context $context,
\Magento\Framework\View\Result\PageFactory $resultPageFactory)
{
$this->resultPageFactory = $resultPageFactory;
parent::__construct($context);
}

public function execute()
{
return $this->resultPageFactory->create();
}
}

0 comments on commit 6321774

Please sign in to comment.