PHP Class N98\Magento\Command\Eav\Attribute\RemoveCommandTest

Author: Aydin Hassan ([email protected])
Inheritance: extends N98\Magento\Command\TestCase
Show file Open project: netz98/n98-magerun

Public Methods

Method Description
entityTypeProvider ( ) : array
testAttributeIsSuccessfullyRemoved ( )
testCanRemoveMultipleAttributes ( )
testCanRemoveMultipleAttributesIfSomeNotExist ( )
testCommandPrintsErrorIfAttributeNotExists ( )
testCommandThrowsExceptionIfInvalidEntityType ( )
testOrderAttributeIsSuccessfullyRemoved ( string $entityTypeCode )

Protected Methods

Method Description
attributeExists ( string $entityType, string $attributeCode ) : boolean
createAttribute ( string $entityType, string $attributeCode, array $data )

Method Details

attributeExists() protected method

protected attributeExists ( string $entityType, string $attributeCode ) : boolean
$entityType string
$attributeCode string
return boolean

createAttribute() protected method

protected createAttribute ( string $entityType, string $attributeCode, array $data )
$entityType string
$attributeCode string
$data array

entityTypeProvider() public static method

public static entityTypeProvider ( ) : array
return array

testAttributeIsSuccessfullyRemoved() public method

testCanRemoveMultipleAttributes() public method

testCanRemoveMultipleAttributesIfSomeNotExist() public method

testCommandPrintsErrorIfAttributeNotExists() public method

testCommandThrowsExceptionIfInvalidEntityType() public method

testOrderAttributeIsSuccessfullyRemoved() public method

public testOrderAttributeIsSuccessfullyRemoved ( string $entityTypeCode )
$entityTypeCode string