N98\Magento\Command\Customer\DeleteCommandTest::testPromptDeleteAllAndDeleteRangeAndAbort PHP Метод

testPromptDeleteAllAndDeleteRangeAndAbort() публичный Метод

    public function testPromptDeleteAllAndDeleteRangeAndAbort()
    {
        $this->dialog->expects($this->exactly(3))->method('askConfirmation')->will($this->onConsecutiveCalls(true, false, false));
        $application = $this->getApplication();
        $application->add($this->command);
        $command = $this->getApplication()->find('customer:delete');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName()));
        $this->assertContains('nothing to do', $commandTester->getDisplay());
    }