12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\User\Block\Role\Grid;
- /**
- * @magentoAppArea adminhtml
- */
- class UserTest extends \PHPUnit\Framework\TestCase
- {
- /**
- * @var \Magento\User\Block\Role\Grid\User
- */
- protected $_block;
- protected function setUp()
- {
- $layout = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
- \Magento\Framework\View\LayoutInterface::class
- );
- $this->_block = $layout->createBlock(\Magento\User\Block\Role\Grid\User::class);
- }
- public function testPreparedCollection()
- {
- $this->_block->toHtml();
- $this->assertInstanceOf(
- \Magento\User\Model\ResourceModel\Role\User\Collection::class,
- $this->_block->getCollection()
- );
- }
- }
|