N98\Magento\Command\Customer\DeleteCommandTest::testBatchDeleteGetsCustomerCollection PHP Method

testBatchDeleteGetsCustomerCollection() public method

    public function testBatchDeleteGetsCustomerCollection()
    {
        $this->customerCollection->expects($this->atLeastOnce())->method('addAttributeToSelect')->will($this->returnValueMap(array(array('firstname', false, $this->customerCollection), array('lastname', false, $this->customerCollection), array('email', false, $this->customerCollection))));
        $this->dialog->expects($this->once())->method('askConfirmation')->will($this->returnValue(false));
        $application = $this->getApplication();
        $application->add($this->command);
        $command = $this->getApplication()->find('customer:delete');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), '--all' => true));
        $this->assertContains('Aborting delete', $commandTester->getDisplay());
    }