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

Inheritance: extends N98\Magento\Command\TestCase
Datei anzeigen Open project: netz98/n98-magerun

Public Methods

Method 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

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

Method Details

testExecute() public method

public testExecute ( )

testExecuteConflict() public method

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

testExecuteConflictFalsePositive() public method

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.