Codeception and shared hosting advanced template

Hi all. I am crashing against two issues and started to lose all hope. I have just recently started to play with Yii2.

I am trying to go through Codeception tests after customizing the advanced template to run on a shared hosting environment as explained in http://www.yiiframework.com/doc-2.0/guide-tutorial-shared-hosting.html

I moved the directories around and modified the index.php files accordingly, setting pretty urls without showing the script just in the frontend. Everything goes ok in the browser but I have problems running the built-in tests.

For frontend:





Tests\codeception\frontend.acceptance Tests (5) -------------------------------------------------------------------------


Ensure that signup works (acceptance\SignupCest::testUserSignup)                                                                 Ok

Ensure that about works (AboutCept)                                                                                              Ok

Ensure that contact works (ContactCept)                                                                                          Ok

Ensure that home page works (HomeCept)                                                                                           Ok

Ensure login page works (LoginCept)                                                                                              Ok

---------------------------------------------------------------------------------------------------------------------------------------


Tests\codeception\frontend.functional Tests (5) ---------------------------------------------------------------------------------------

Ensure that signup works (functional\SignupCest::testUserSignup)                                                                 Ok

Ensure that about works (AboutCept)                                                                                              Ok

Ensure that contact works (ContactCept)                                                                                          Ok

Ensure that home page works (HomeCept)                                                                                           Ok

Ensure login page works (LoginCept)                                                                                              Ok

-----------------------------------------------------------------------------------------------------------------------


Tests\codeception\frontend.unit Tests (<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' /> -----------------------------------------------------------------------------


Trying to test contact (unit\models\ContactFormTest::testContact)... <pre>PHP Fatal Error 'yii\base\ErrorException' with 

message 'Maximum function nesting level of '100' reached, aborting!'


In (...)\AppData\Roaming\Composer\vendor\myclabs\deep-copy\src\DeepCopy\DeepCopy.php:84




For what I can see in the test code, after it sends the Contact Form email (that is correctly created in the frontend/runtime/mail folder) it tries to find the file via





$this->specify('email should be send', function () {

            expect('email file should exist', file_exists($this->getMessageFile()))->true();

        });




But it looks like it enters in a dispair spiral.

Also, in the backend tests:





Tests\codeception\backend.acceptance Tests (1) -------------------------------------------------------------------------

Ensure login page works (LoginCept)                                                                                     

Fail

------------------------------------------------------------------------------------------------------------------------


Tests\codeception\backend.functional Tests (1) -------------------------------------------------------------------------

Trying to ensure login page works (LoginCept)... <pre>PHP User Error 'yii\base\ErrorException' with message 'Exception

 (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'The directory does not exist: 

(...)/yii2advanced/backend/web/assets'




Of course that directory does not exist, as I moved around the entry point scripts and its related directories. I am not sure where to configure those runtime assets for Codeception to actually find them.

I googled around for some time, but with little luck. Any hints welcome. Thanks in advance!