Codeception Results OK (38s)

Cli Tests

[+] (base/00_YiiCept) 0.17s

I run shell command "/app/yii"
I see in shell output "This is Yii version 2.0."

[+] (base/01_GiiCept) 0.21s

I run shell command "/app/yii help gii"
I see in shell output "DESCRIPTION"
I see in shell output "SUB-COMMANDS"
I see in shell output "gii/"
I run shell command "/app/yii help gii/giiant-crud"
I see in shell output "DESCRIPTION"
I see in shell output "yii gii/giiant-crud"

[+] (onlycrud/12_GiiantBatchCrudOnlyCept) 0.18s

I run shell command "mkdir -p /app/src/controllers/onlyCrud"
I run shell command "mkdir -p /app/src/models/onlyCrud/search"
I run shell command "/app/yii giiant-batch/cruds \ --interactive=0 \ --overwrite=1 \ --modelNamespace=tests\\models \ --crudControllerNamespace=app\\controllers\\onlyCrud \ --crudSearchModelNamespace=app\\models\\onlyCrud\\search \ --crudViewPath=@app/views/onlyCrud \ --crudPathPrefix=onlyCrud/ \ --crudSkipRelations=Variant,Variants \ --crudProviders=schmunk42\\giiant\\generators\\crud\\providers\\optsProvider \ --tables=country"
I don't see in shell output "Please fix the following errors"
I don't see in shell output "ErrorException"
I see in shell output "The following files will be generated"
I see file found "/app/src/controllers/onlyCrud/CountryController.php"

[+] (sakila/10_GiiantBatchSakilaModuleCept) 3.47s

I run shell command "mkdir -p /app/src/modules/sakila/controllers"
I run shell command "mkdir -p /app/src/modules/sakila/models/search"
I run shell command "yii gii/giiant-module \ --interactive=0 \ --overwrite=1 \ --moduleID=sakila \ --moduleClass=app\\modules\\sakila\\Module"
I see file found "/app/src/modules/sakila/Module.php"
I run shell command "/app/yii giiant-batch \ --interactive=0 \ --overwrite=1 \ --modelDb=db \ --modelBaseClass=yii\\db\\ActiveRecord \ --modelNamespace=app\\modules\\sakila\\models \ --modelQueryNamespace=app\\modules\\sakila\\models\\query \ --crudAccessFilter=1 \ --crudControllerNamespace=app\\modules\\sakila\\controllers \ --crudSearchModelNamespace=app\\modules\\sakila\\models\\search \ --crudViewPath=@app/modules/sakila/views \ --crudPathPrefix= \ --crudSkipRelations=Variant,Variants \ --crudProviders=schmunk42\\giiant\\generators\\crud\\providers\\optsProvider \ --tables=actor,film,film_actor,language,film_category,category,inventory,store,rental,payment,customer,staff,address,city,country"
I don't see in shell output "Please fix the following errors"
I don't see in shell output "ErrorException"
I see in shell output "The following files will be generated"
I see file found "/app/src/modules/sakila/controllers/ActorController.php"
I see file found "/app/src/modules/sakila/models/Actor.php"

[+] (sakila/11_GiiantBatchSakilaCrudInFolderCept) 2.56s

I run shell command "mkdir -p /app/src/controllers/crud"
I run shell command "mkdir -p /app/src/models/crud/search"
I run shell command "/app/yii giiant-batch \ --interactive=0 \ --overwrite=1 \ --modelDb=db \ --modelBaseClass=yii\\db\\ActiveRecord \ --modelNamespace=app\\\models \ --crudControllerNamespace=app\\controllers\\crud \ --crudSearchModelNamespace=app\\models\\crud\\search \ --crudViewPath=@app/views/crud \ --crudPathPrefix=crud/ \ --crudSkipRelations=Variant,Variants \ --crudProviders=schmunk42\\giiant\\generators\\crud\\providers\\optsProvider \ --tables=actor,film,film_actor,language,film_category,category,inventory,store,rental,payment,customer,staff,address,city,country"
I don't see in shell output "Please fix the following errors"
I don't see in shell output "ErrorException"
I see in shell output "The following files will be generated"
I see file found "/app/src/controllers/crud/CountryController.php"

Acceptance Tests

[+] Ensure that crudonly works (no access rules) (onlyCrud/CrudCept) 6.63s

I am on page "/onlyCrud/country"
I see "Countries","h1"
I make screenshot "crud-country"
I expect to see view, edit and delete button
I see element in dom "[data-key="1"] .glyphicon-eye-open"
I see element in dom "[data-key="2"] .glyphicon-pencil"
I see element in dom "[data-key="3"] .glyphicon-trash"
I am going to create a Country
I click "New"
I see "Country","h1"
I see "Create",".btn"
I fill field "#country-country","Xyzland"
I make screenshot "crud-pre-create-country"
I click "Create"
I wait 1
I see "Xyzland","table"
I see "Country","table"
I make screenshot "crud-create-country"
I click "Edit"
I wait 1
I see in field "#country-country","Xyzland"
I see "Country","h1"
I fill field "#country-country","Abcstan"
I click "Save"
I wait 1
I see "Abcstan","table"
I make screenshot "crud-edit-country"

[+] Ensure that copy button works (sakila/CopyButtonCept) 5.01s

I am on page "/en/user/login"
I am on page "/en/user/login"
I fill field "input[name="login-form[login]"]","admin"
I fill field "input[name="login-form[password]"]","admin"
I click "Sign in"
I wait for text "admin",5
I am on page "/sakila/actor/view?actor_id=1"
I see "1","h1"
I make screenshot "detail-view"
I click "Copy"
I see in field "#actor-first_name","PENELOPE"

[+] Ensure that crud works with access rules (sakila/CrudCept) 5.46s

I am on page "/sakila/actor"
I don't see "Actors","h1"
I make screenshot "crud-actor-login"
I see "Sign in","h3"
I am going to try to login with correct credentials
I am on page "/en/user/login"
I am on page "/en/user/login"
I fill field "input[name="login-form[login]"]","admin"
I fill field "input[name="login-form[password]"]","admin"
I click "Sign in"
I wait for text "admin",5
I see "Actors","h1"
I make screenshot "crud-actor"
I expect to see view, edit and delete button
I see element in dom "[data-key="1"] .glyphicon-eye-open"
I see element in dom "[data-key="2"] .glyphicon-pencil"
I see element in dom "[data-key="3"] .glyphicon-trash"

[+] Ensure that module works (sakila/ModuleCept) 6.35s

I am on page "/sakila"
I don't see "Actors","h1"
I make screenshot "module-login"
I see "Sign in","h3"
I am going to try to login with correct credentials
I am on page "/en/user/login"
I am on page "/en/user/login"
I fill field "input[name="login-form[login]"]","admin"
I fill field "input[name="login-form[password]"]","admin"
I click "Sign in"
I wait for text "admin",5
I am on page "/sakila"
I see "rental"
I make screenshot "module-index"

[+] Ensure that crud tabs remember their state (sakila/TabStateCept) 8s

I am going to try to login with correct credentials
I am on page "/en/user/login"
I am on page "/en/user/login"
I fill field "input[name="login-form[login]"]","admin"
I fill field "input[name="login-form[password]"]","admin"
I click "Sign in"
I wait for text "admin",5
I am going to select a tab
I am on page "/sakila/category/view?category_id=1"
I see "Category","h1"
I click "Films"
I wait 1
I click "Edit"
I click "View"
I expect previously selected tab to be active
I see "Attach Film"
I make screenshot "tab-state-success"

Summary

Successful scenarios: 10
Failed scenarios: 0
Skipped scenarios: 0
Incomplete scenarios: 0