public function testAfterLoad() { $this->_inventory->expects($this->once())->method('getIsInStock')->will($this->returnValue(1)); $this->_inventory->expects($this->once())->method('getQty')->will($this->returnValue(5)); $object = new Varien_Object(); $this->_model->afterLoad($object); $data = $object->getData(); $this->assertEquals(1, $data[self::ATTRIBUTE_NAME]['is_in_stock']); $this->assertEquals(5, $data[self::ATTRIBUTE_NAME]['qty']); }