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

Public Member Functions

 testGetSubscriptionObject ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $_block
 

Detailed Description

Definition at line 8 of file InfoTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 15 of file InfoTest.php.

16  {
18  \Magento\Framework\View\LayoutInterface::class
19  )->createBlock(
20  \Magento\Customer\Block\Account\Dashboard\Info::class
21  );
22  }

◆ testGetSubscriptionObject()

testGetSubscriptionObject ( )

Definition at line 24 of file InfoTest.php.

25  {
26  $object = $this->_block->getSubscriptionObject();
27  $this->assertInstanceOf(\Magento\Newsletter\Model\Subscriber::class, $object);
28 
29  $object2 = $this->_block->getSubscriptionObject();
30  $this->assertSame($object, $object2);
31  }

Field Documentation

◆ $_block

$_block
protected

Definition at line 13 of file InfoTest.php.


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