Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
AjaxTest Class Reference
Inheritance diagram for AjaxTest:

Public Member Functions

 testToHtmlWithoutProducts ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $_block = null
 

Detailed Description

@magentoAppArea adminhtml

Definition at line 11 of file AjaxTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 18 of file AjaxTest.php.

19  {
20  parent::setUp();
22  \Magento\Framework\View\LayoutInterface::class
23  )->createBlock(
24  \Magento\Catalog\Block\Adminhtml\Product\Options\Ajax::class
25  );
26  }

◆ testToHtmlWithoutProducts()

testToHtmlWithoutProducts ( )

Definition at line 28 of file AjaxTest.php.

29  {
30  $this->assertEquals(json_encode([]), $this->_block->toHtml());
31  }

Field Documentation

◆ $_block

$_block = null
protected

Definition at line 16 of file AjaxTest.php.


The documentation for this class was generated from the following file: