PHP Класс N98\Magento\Command\Developer\Module\Rewrite\ConflictsCommandTest

Наследование: extends N98\Magento\Command\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
getCommandWithMockLoadRewrites ( array $return ) : ConflictsCommand Mock the ConflictsCommand and change the return value of loadRewrites() to the given argument

Описание методов

testExecute() публичный Метод

public testExecute ( )

testExecuteConflict() публичный Метод

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

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.