N98\Magento\Command\Eav\Attribute\RemoveCommandTest::testCommandPrintsErrorIfAttributeNotExists PHP Method

testCommandPrintsErrorIfAttributeNotExists() public method

    public function testCommandPrintsErrorIfAttributeNotExists()
    {
        $application = $this->getApplication();
        $application->add(new RemoveCommand());
        $application->setAutoExit(false);
        $command = $this->getApplication()->find('eav:attribute:remove');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'entityType' => 'catalog_product', 'attributeCode' => array('not_an_attribute')));
        $this->assertContains('Attribute: "not_an_attribute" does not exist for entity type: "catalog_product"', $commandTester->getDisplay());
    }