public function testGetProduct() { $this->assertNotEmpty($this->_block->getProduct()->getId()); $this->assertEquals($this->_product->getId(), $this->_block->getProduct()->getId()); Mage::unregister('product'); $this->_block->setProductId(1); $this->assertEquals($this->_product->getId(), $this->_block->getProduct()->getId()); }