N98\Magento\Command\Indexer\ReindexCommandTest::testExecute PHP Method

testExecute() public method

public testExecute ( )
    public function testExecute()
    {
        $application = $this->getApplication();
        $application->add(new ReindexCommand());
        $command = $this->getApplication()->find('index:reindex');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'index_code' => 'tag_summary,tag_summary'));
        $this->assertContains('Successfully reindexed tag_summary', $commandTester->getDisplay());
    }
ReindexCommandTest