function let(VariantInterface $masterVariant) { $masterVariant->setMaster(true)->shouldBeCalled(); $masterVariant->setProduct($this)->shouldBeCalled(); $masterVariant->isMaster()->willReturn(true); $this->setMasterVariant($masterVariant); }
function let(VariantInterface $masterVariant) { $masterVariant->setMaster(true)->shouldBeCalled(); $masterVariant->setProduct($this)->shouldBeCalled(); $masterVariant->isMaster()->willReturn(true); $this->setMasterVariant($masterVariant); }