public function testCanRemoveMultipleAttributesIfSomeNotExist()
{
$application = $this->getApplication();
$application->add(new RemoveCommand());
$application->setAutoExit(false);
$command = $this->getApplication()->find('eav:attribute:remove');
$attributeCode1 = 'crazyCoolAttribute1';
$attributeCode2 = 'crazyCoolAttribute2';
$this->createAttribute('catalog_product', $attributeCode1, array('type' => 'text', 'input' => 'text', 'label' => 'Test Attribute 1'));
$this->assertTrue($this->attributeExists('catalog_product', $attributeCode1));
$this->assertFalse($this->attributeExists('catalog_product', $attributeCode2));
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), 'entityType' => 'catalog_product', 'attributeCode' => array($attributeCode1, $attributeCode2)));
$this->assertFalse($this->attributeExists('catalog_product', $attributeCode1));
$this->assertFalse($this->attributeExists('catalog_product', $attributeCode2));
$this->assertContains('Attribute: "crazyCoolAttribute2" does not exist for entity type: "catalog_product"', $commandTester->getDisplay());
$this->assertContains('Successfully removed attribute: "crazyCoolAttribute1" from entity type: "catalog_product"', $commandTester->getDisplay());
}