PHP Class N98\Magento\Command\Developer\ClassLookupCommandTest

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

Public Methods

Method Description
classLookupProvider ( ) : array Provide data for the class lookup testExecute()
testExecute ( string $type, string $name, string $expected, boolean $exists ) Test that the class lookup command resolves to the expected Magento class, and optionally whether it outputs a notice informing that the class doesn't exist

Method Details

classLookupProvider() public method

Provide data for the class lookup testExecute()
public classLookupProvider ( ) : array
return array

testExecute() public method

Test that the class lookup command resolves to the expected Magento class, and optionally whether it outputs a notice informing that the class doesn't exist
public testExecute ( string $type, string $name, string $expected, boolean $exists )
$type string Model, helper, block
$name string Magento dev code
$expected string Resolved class name
$exists boolean Whether the resolved class should exist