Definition at line 8 of file ItemsTest.php.
 
◆ testGetCommentsHtml()
Definition at line 10 of file ItemsTest.php.
   13             \
Magento\Framework\View\LayoutInterface::class
    15         $block = $layout->createBlock(\
Magento\Shipping\Block\Items::class, 
'block');
    16         $childBlock = $layout->addBlock(\
Magento\Framework\View\Element\Text::class, 
'shipment_comments', 
'block');
    18             \
Magento\Sales\Model\Order\Shipment::class
    21         $expectedHtml = 
'<b>Any html</b>';
    22         $this->assertEmpty($childBlock->getEntity());
    23         $this->assertEmpty($childBlock->getTitle());
    24         $this->assertNotEquals($expectedHtml, 
$block->getCommentsHtml(
$shipment));
    26         $childBlock->setText($expectedHtml);
    28         $this->assertSame(
$shipment, $childBlock->getEntity());
    29         $this->assertNotEmpty($childBlock->getTitle());
    30         $this->assertEquals($expectedHtml, $actualHtml);
 
foreach($order->getItems() as $orderItem) $shipment
 
static getObjectManager()
 
 
 
 
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Shipping/Block/ItemsTest.php