We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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