public function testGetOptions()
 {
     $this->stateMock->expects($this->never())->method('setAreaCode');
     $this->command = new IndexerReindexCommand($this->objectManagerFactory);
     $optionsList = $this->command->getInputList();
     $this->assertSame(1, sizeof($optionsList));
     $this->assertSame('index', $optionsList[0]->getName());
 }
Ejemplo n.º 2
0
 public function testGetOptions()
 {
     $this->command = new IndexerReindexCommand($this->objectManagerFactory);
     $optionsList = $this->command->getInputList();
     $this->assertSame(2, sizeof($optionsList));
     $this->assertSame('all', $optionsList[0]->getName());
     $this->assertSame('index', $optionsList[1]->getName());
 }