Property | Type | Description | |
---|---|---|---|
$app | Illuminate\Foundation\Application |
Property | Type | Description | |
---|---|---|---|
$config | array |
Method | Description | |
---|---|---|
__construct ( $config = null ) | Constructor. | |
_after ( Codeception\TestCase $test ) | After hook. | |
_afterStep ( Codeception\Step $step ) | After step hook. | |
_before ( Codeception\TestCase $test ) | Before hook. | |
_initialize ( ) | Initialize hook. | |
amLoggedAs ( Illuminate\Contracts\Auth\User | array $user, string $driver = null ) : void | Set the currently logged in user for the application. | |
amOnAction ( $action, array $params = [] ) | Opens web page by action name | |
amOnRoute ( $route, array $params = [] ) | Opens web page using route name and parameters. | |
dontSeeAuthentication ( ) | Check that user is not authenticated | |
dontSeeRecord ( $model, array $attributes = [] ) | Checks that record does not exist in database. | |
getApplication ( ) : Illuminate\Foundation\Application | Provides access the Laravel application object. | |
grabRecord ( $model, array $attributes = [] ) : mixed | Retrieves record from database | |
grabService ( string $class ) : mixed | Return an instance of a class from the IoC Container. | |
haveRecord ( $model, array $attributes = [] ) : mixed | Inserts record into the database. | |
logout ( ) | Logs user out | |
seeAuthentication ( ) | Checks that user is authenticated | |
seeCurrentActionIs ( $action, array $params = [] ) | Checks that current url matches action | |
seeCurrentRouteIs ( $route, array $params = [] ) | Checks that current url matches route | |
seeFormErrorMessage ( string $key, string $errorMessage ) | Assert that specific form error message is set in the view. | |
seeFormErrorMessages ( array $bindings ) | Assert that specific form error messages are set in the view. | |
seeFormHasErrors ( ) : boolean | Assert that the form errors are bound to the View. | |
seeInSession ( string | array $key, mixed $value = null ) : void | Assert that the session has a given list of values. | |
seeRecord ( $model, array $attributes = [] ) | Checks that record exists in database. | |
seeSessionHasValues ( array $bindings ) : void | Assert that the session has a given list of values. |
Method | Description | |
---|---|---|
actionWithNamespace ( string $action ) : string | Normalize an action to full namespaced action. | |
bootApplication ( ) : Illuminate\Foundation\Application | Boot the Laravel application object. | |
findRecord ( $model, array $attributes = [] ) : mixed | ||
getRootControllerNamespace ( ) : string | Get the root controller namespace for the application. | |
initializeLaravel ( ) | Initialize the Laravel framework. | |
revertErrorHandler ( ) | Revert back to the Codeception error handler, becauses Laravel registers it's own error handler. |
public _after ( Codeception\TestCase $test ) | ||
$test | Codeception\TestCase |
public _afterStep ( Codeception\Step $step ) | ||
$step | Codeception\Step |
public _before ( Codeception\TestCase $test ) | ||
$test | Codeception\TestCase |
protected actionWithNamespace ( string $action ) : string | ||
$action | string | |
return | string |
public amOnAction ( $action, array $params = [] ) | ||
$action | ||
$params | array |
protected bootApplication ( ) : Illuminate\Foundation\Application | ||
return | Illuminate\Foundation\Application |
public dontSeeAuthentication ( ) |
public dontSeeRecord ( $model, array $attributes = [] ) | ||
$model | ||
$attributes | array |
protected findRecord ( $model, array $attributes = [] ) : mixed | ||
$model | ||
$attributes | array | |
return | mixed |
public getApplication ( ) : Illuminate\Foundation\Application | ||
return | Illuminate\Foundation\Application |
protected getRootControllerNamespace ( ) : string | ||
return | string |
public grabRecord ( $model, array $attributes = [] ) : mixed | ||
$model | ||
$attributes | array | |
return | mixed |
public grabService ( string $class ) : mixed | ||
$class | string | |
return | mixed |
public haveRecord ( $model, array $attributes = [] ) : mixed | ||
$model | ||
$attributes | array | |
return | mixed |
protected initializeLaravel ( ) |
protected revertErrorHandler ( ) |
public seeCurrentActionIs ( $action, array $params = [] ) | ||
$action | ||
$params | array |
public seeCurrentRouteIs ( $route, array $params = [] ) | ||
$route | ||
$params | array |
public seeFormErrorMessage ( string $key, string $errorMessage ) | ||
$key | string | |
$errorMessage | string |
public seeFormErrorMessages ( array $bindings ) | ||
$bindings | array |
public seeFormHasErrors ( ) : boolean | ||
return | boolean |
public seeSessionHasValues ( array $bindings ) : void | ||
$bindings | array | |
return | void |
public Application,Illuminate\Foundation $app | ||
return | Illuminate\Foundation\Application |