-
-
Save nsanden/5ee34b54376f066b9331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ codecept run --debug functional CampaignCept.php | |
Codeception PHP Testing Framework v2.0.8 | |
Powered by PHPUnit 4.4.0 by Sebastian Bergmann. | |
Tests\codeception\backend.functional Tests (1) --------------------------------- | |
---------------------------------------------------- | |
Modules: Filesystem, Yii2, FixtureHelper | |
-------------------------------------------------------------------------------- | |
---------------------------------------------------- | |
Trying to ensure campaign page loads (CampaignCept) | |
Scenario: | |
* I am on page "/backend/web/index-test.php?r=site%2Flogin" | |
[Response] 200 | |
[Page] http://localhost/backend/web/index-test.php?r=site%2Flogin | |
[Cookies] [] | |
[Headers] {"content-type":["text/html; charset=UTF-8"]} | |
* I am going to try to login with correct credentials | |
* I fill field "input[name="LoginForm[username]"]","erau" | |
* I fill field "input[name="LoginForm[password]"]","password_0" | |
* I click "login-button" | |
[Uri] http://localhost/backend/web/index-test.php?r=site%2Flogin | |
[POST] {"_csrf":"RmRTQzFRWTNxLCobfRkGAws2PwxUGD5sCyoJdFkhMncuMQEiVQcBZA==","Lo | |
ginForm[username]":"erau","LoginForm[password]":"password_0","LoginForm[remember | |
Me]":"1","login-button":""} | |
[Headers] {"location":["http:\/\/localhost\/backend\/web\/index-test.php"]} | |
[Response] 200 | |
[Page] http://localhost/backend/web/index-test.php | |
[Cookies] {"_csrf":"a73bcff29842342cdb70e6221aef2b21706ba0ca5dcaa8d7620862c782 | |
c19a68s:32:"7HyXLH_0MRlOeIg_MNZ7hpkDhURadVXW";","_identity":"70688ffb110fbb93e12 | |
77632173d0238ec68b10b5bed99517308b4c4fad76dc5s:47:"[21,"tUu1qHcde0diwUol3xeI-18M | |
uHkkprQI",2592000]";"} | |
[Headers] {"content-type":["text/html; charset=UTF-8"]} | |
* I expect to see that user is logged | |
* I see link "Logout (erau)" | |
* I don't see link "Login" | |
* I don't see link "Signup" | |
* I am on page "/backend/web/index-test.php?r=campaign%2Findex" | |
[Response] 200 | |
[Page] http://localhost/backend/web/index-test.php?r=campaign%2Findex | |
[Cookies] {"_csrf":"a73bcff29842342cdb70e6221aef2b21706ba0ca5dcaa8d7620862c782 | |
c19a68s:32:"7HyXLH_0MRlOeIg_MNZ7hpkDhURadVXW";","_identity":"70688ffb110fbb93e12 | |
77632173d0238ec68b10b5bed99517308b4c4fad76dc5s:47:"[21,"tUu1qHcde0diwUol3xeI-18M | |
uHkkprQI",2592000]";"} | |
[Headers] {"content-type":["text/html; charset=UTF-8"]} | |
* I am going to see if the page loaded correctly | |
* I expect to see "Showing" text | |
* I see "Showing",".summary" | |
* I am going to confirm that sorting by status works fine | |
* I click "Status" | |
<pre>PHP Fatal Error 'yii\base\ErrorException' with message 'Allo | |
wed memory size of 25165824 bytes exhausted (tried to allocate 305708 bytes) | |
9; | |
in C:\xampp\htdocs\teespring\vendor\yiisoft\yii2\web\View.php:174 | |
Stack trace: | |
#0 [internal function]: yii\base\ErrorHandler->handleFatalError() | |
#1 {main}</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment