9 use Symfony\Component\Console\Tester\CommandTester;
30 $indexerOne = $this->getIndexerMock(
32 [
'indexer_id' =>
'indexer_1',
'title' =>
'Title_indexerOne']
40 ->will($this->returnSelf());
45 $indexerOne->expects($this->once())
50 $commandTester =
new CommandTester($this->command);
51 $commandTester->execute([]);
52 $actualValue = $commandTester->getDisplay();
53 $this->assertSame(sprintf(
'Title_indexerOne indexer has been invalidated.') . PHP_EOL, $actualValue);
initIndexerCollectionByItems(array $items)