/** * Test _beforeToHtml method */ public function testBeforeToHtml() { // TODO Move to unit tests after MAGETWO-4015 complete $apiUser = new Varien_Object(); $this->_block->setApiUser($apiUser); $this->_block->toHtml(); $this->assertSame($apiUser, $this->_block->getChildBlock('form')->getApiUser()); }