Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultCaptchaTest.php
Go to the documentation of this file.
1 <?php
7 
8 class DefaultCaptchaTest extends \PHPUnit\Framework\TestCase
9 {
13  protected $_block;
14 
15  protected function setUp()
16  {
18  \Magento\Framework\View\LayoutInterface::class
19  )->createBlock(
20  \Magento\Captcha\Block\Adminhtml\Captcha\DefaultCaptcha::class
21  );
22  }
23 
29  public function testGetRefreshUrl()
30  {
31  $this->assertContains('backend/admin/refresh/refresh', $this->_block->getRefreshUrl());
32  }
33 }