public function testAttributeIsSuccessfullyRemoved()
{
$application = $this->getApplication();
$application->add(new RemoveCommand());
$application->setAutoExit(false);
$command = $this->getApplication()->find('eav:attribute:remove');
$entityType = 'catalog_product';
$attributeCode = 'crazyCoolAttribute';
$this->createAttribute($entityType, $attributeCode, array('type' => 'text', 'input' => 'text', 'label' => 'Test Attribute'));
$this->assertTrue($this->attributeExists($entityType, $attributeCode));
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), 'entityType' => $entityType, 'attributeCode' => array($attributeCode)));
$this->assertFalse($this->attributeExists($entityType, $attributeCode));
}