PHP Class N98\Magento\Command\Developer\Module\Rewrite\ConflictsCommandTest

Inheritance: extends N98\Magento\Command\TestCase
Afficher le fichier Open project: netz98/n98-magerun

Méthodes publiques

Méthode Description
testExecute ( )
testExecuteConflict ( ) Magento doesn't have any conflicts out of the box, so we need to fake one
testExecuteConflictFalsePositive ( ) This is made to look like a conflict (2 rewrites for the same class) but because Bundle extends Catalog, it's valid. Note that we're implying Bundle depends on Catalog by passing it as the second value in the array.

Private Methods

Méthode Description
getCommandWithMockLoadRewrites ( array $return ) : ConflictsCommand Mock the ConflictsCommand and change the return value of loadRewrites() to the given argument

Method Details

testExecute() public méthode

public testExecute ( )

testExecuteConflict() public méthode

Magento doesn't have any conflicts out of the box, so we need to fake one
public testExecuteConflict ( )

testExecuteConflictFalsePositive() public méthode

This is made to look like a conflict (2 rewrites for the same class) but because Bundle extends Catalog, it's valid. Note that we're implying Bundle depends on Catalog by passing it as the second value in the array.