public function testItDelegatesToAProductStatusAdapter() { $this->mockInput->method('getArgument')->willReturn('test'); $this->mockProductStatusAdapter->expects($this->once())->method('getStatusForProductsMatchingSku')->with('test')->willReturn([]); $this->command->run($this->mockInput, $this->mockOutput); }
public function testItDelegatesToTheProductStatusAdapter() { $this->mockProductStatusAdapter->expects($this->once())->method('disableProductWithSku')->with('test'); $this->mockInput->method('getArgument')->willReturn('test'); $this->command->run($this->mockInput, $this->mockOutput); }
public function testItDelegatesDisablingProductsToTheProductStatusAdapter() { $this->mockProductStatusAdapter->expects($this->once())->method('disableProductWithSku'); $this->statusManagement->set('test', ProductStatusAdapterInterface::DISABLED); }