public function testItDisplaysTheStatusForAllMatchingProducts() { $this->mockInput->method('getArgument')->with('sku')->willReturn('TEST'); $this->mockProductStatusAdapter->method('getProductStatusMatchingSku')->willReturn(['TEST1' => ProductStatusAdapterInterface::ENABLED, 'TEST2' => ProductStatusAdapterInterface::DISABLED, 'TEST3' => ProductStatusAdapterInterface::ENABLED]); $this->mockOutput->method('writeln')->withConsecutive(['<info>TEST1: enabled</info>'], ['<info>TEST2: disabled</info>'], ['<info>TEST3: enabled</info>']); $this->command->run($this->mockInput, $this->mockOutput); }