public function testGetInvoiceTotalsHtml() { $childBlock = $this->_layout->addBlock('Mage_Core_Block_Text', 'invoice_totals', 'block'); $expectedHtml = '<b>Any html</b>'; $this->assertEmpty($childBlock->getInvoice()); $this->assertNotEquals($expectedHtml, $this->_block->getInvoiceTotalsHtml($this->_invoice)); $childBlock->setText($expectedHtml); $actualHtml = $this->_block->getInvoiceTotalsHtml($this->_invoice); $this->assertSame($this->_invoice, $childBlock->getInvoice()); $this->assertEquals($expectedHtml, $actualHtml); }