public function testGetProductParent() { $this->typeInstance->expects($this->once())->method('getStoreFilter')->with($this->product)->willReturn(true); $this->product->expects($this->once())->method('getTypeInstance')->willReturn($this->typeInstance); $this->configurable->setData('product', $this->product); $this->assertEquals($this->product, $this->configurable->getProduct()); }