console\Application $defaultRoute

$defaultRoute public property The default route of this application. Defaults to 'help', meaning the help command. public string $defaultRoute = 'help'

Configurations

Configuration Format Using Configurations Configuration Files Default Configurations Environment Constants Configurations are widely used in Yii when creating new objects or initializing existing objects. Configurations usually include the class name of the object being created, and a list of initial values that should be assigned to the object's properties. Configurations may also include a list of handlers that should be attached to the object's events and/or a list of behaviors that should

codeception\TestCase mockApplication()

mockApplication() protected method Mocks up the application instance. protected yii\web\Application|yii\console\Application mockApplication ( $config = null )$config array The configuration that should be used to generate the application instance. If null, $appConfig will be used. return yii\web\Application|yii\console\Application The application instance throws yii\base\InvalidConfigException if the application configuration is invalid

codeception\TestCase setUp()

setUp() protected method protected void setUp ( )

codeception\TestCase __get()

__get() public method Returns the value of an object property. Do not call this method directly as it is a PHP magic method that will be implicitly called when executing $value = $object->property;. public mixed __get ( $name )$name string The property name return mixed The property value throws yii\base\UnknownPropertyException if the property is not defined

codeception\TestCase __call()

__call() public method Calls the named method which is not a class method. Do not call this method directly as it is a PHP magic method that will be implicitly called when an unknown method is being invoked. public mixed __call ( $name, $params )$name string The method name $params array Method parameters return mixed The method return value throws yii\base\UnknownMethodException when calling unknown method

codeception\TestCase tearDown()

tearDown() protected method protected void tearDown ( )

codeception\TestCase destroyApplication()

destroyApplication() protected method Destroys the application instance created by mockApplication(). protected void destroyApplication ( )

codeception\TestCase $appConfig

$appConfig public property The application configuration that will be used for creating an application instance for each test. You can use a string to represent the file path or path alias of a configuration file. The application configuration array may contain an optional class element which specifies the class name of the application instance to be created. By default, a yii\web\Application instance will be created. public array|string $appConfig = '@tests/codeception/config/unit.php'

codeception\DbTestCase globalFixtures()

globalFixtures() public method Declares the fixtures shared required by different test cases. The return value should be similar to that of fixtures(). You should usually override this method in a base class. public array globalFixtures ( )return array The fixtures shared and required by different test cases.