Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Incubator tests database schema

Hello,

I might be missing something : is there a command to create the tables needed for the Incubator tests to run ? The database is available as per the requirements and get connected to. Output exemple :

 $ vendor/bin/codecept run tests/unit/Session
Codeception PHP Testing Framework v2.3.6
Powered by PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

Unit Tests (1) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
E DatabaseTest: Should work session adapter (0.01s)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 241 ms, Memory: 10.00MB

There was 1 error:

---------
1) DatabaseTest: Should work session adapter
 Test  tests/unit/Session/Adapter/DatabaseTest.php:shouldWorkSessionAdapter

  [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'incubator-test.sessions' doesn't exist  

#1  PDOStatement->execute
#2  Phalcon\Db\Adapter\Pdo->executePrepared
#3  Phalcon\Db\Adapter\Pdo->query
#4  /Users/challet/www/phalcon-incubator/Library/Phalcon/Session/Adapter/Database.php:132
#5  Phalcon\Session\Adapter\Database->read
#6  session_start
#7  /Users/challet/www/phalcon-incubator/tests/unit/Session/Adapter/DatabaseTest.php:77
#8  Phalcon\Test\Session\Adapter\DatabaseTest->shouldWorkSessionAdapter