PHP Class N98\Magento\Command\TestCase

Inheritance: extends PHPUnit_Framework_TestCase
Exibir arquivo Open project: netz98/n98-magerun Class Usage Examples

Public Methods

Method Description
getApplication ( ) : Application | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject
getDatabaseConnection ( ) : Varien_Db_Adapter_Pdo_Mysql
getTestMagentoRoot ( ) : string getter for the magento root directory of the test-suite
getTestMagentoRootFromEnvironment ( string $varname, string $basename ) : string | null

Method Details

getApplication() public method

public getApplication ( ) : Application | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject
return N98\Magento\Application | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject

getDatabaseConnection() public method

public getDatabaseConnection ( ) : Varien_Db_Adapter_Pdo_Mysql
return Varien_Db_Adapter_Pdo_Mysql

getTestMagentoRoot() public method

getter for the magento root directory of the test-suite
See also: ApplicationTest::testExecute
public getTestMagentoRoot ( ) : string
return string

getTestMagentoRootFromEnvironment() public static method

public static getTestMagentoRootFromEnvironment ( string $varname, string $basename ) : string | null
$varname string name of the environment variable containing the test-root
$basename string name of the stopfile containing the test-root
return string | null