tests should be working / build should suceed now
Some checks failed
CI / testsuite (mysql, 8.2, ) (push) Failing after 4m30s
CI / testsuite (pgsql, 8.2, ) (push) Failing after 8m57s
CI / testsuite (mysql, 8.4, ) (push) Has started running
CI / testsuite (pgsql, 8.4, ) (push) Has started running
CI / testsuite (sqlite, 8.2, ) (push) Has started running
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Has been cancelled
CI / testsuite (sqlite, 8.4, ) (push) Has been cancelled
CI / Coding Standard & Static Analysis (push) Has been cancelled
Some checks failed
CI / testsuite (mysql, 8.2, ) (push) Failing after 4m30s
CI / testsuite (pgsql, 8.2, ) (push) Failing after 8m57s
CI / testsuite (mysql, 8.4, ) (push) Has started running
CI / testsuite (pgsql, 8.4, ) (push) Has started running
CI / testsuite (sqlite, 8.2, ) (push) Has started running
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Has been cancelled
CI / testsuite (sqlite, 8.4, ) (push) Has been cancelled
CI / Coding Standard & Static Analysis (push) Has been cancelled
This commit is contained in:
@@ -10,6 +10,7 @@ use Cake\Datasource\ConnectionManager;
|
||||
use Cake\Mailer\Mailer;
|
||||
use Cake\Mailer\Transport\DebugTransport;
|
||||
use Cake\Mailer\TransportFactory;
|
||||
use Cake\TestSuite\Fixture\SchemaLoader;
|
||||
use CakeContactUs\CakeContactUsPlugin;
|
||||
use Migrations\TestSuite\Migrator;
|
||||
use TestApp\Controller\AppController;
|
||||
@@ -155,7 +156,7 @@ ConnectionManager::setConfig('test', [
|
||||
* and using \Migrations\TestSuite\Migrator to load schema.
|
||||
*/
|
||||
// Load a schema dump file.
|
||||
//(new SchemaLoader())->loadSqlFiles('tests/schema.sql', 'test');
|
||||
(new SchemaLoader())->loadSqlFiles('tests/schema.sql', 'test');
|
||||
if (!defined('SECOND')) {
|
||||
define('SECOND', 1);
|
||||
define('MINUTE', 60);
|
||||
@@ -166,11 +167,11 @@ if (!defined('SECOND')) {
|
||||
define('YEAR', 31536000);
|
||||
}
|
||||
|
||||
$migrator = new Migrator();
|
||||
$migrator->runMany([
|
||||
// Run app migrations on test connection.
|
||||
['connection' => 'test'],
|
||||
// Run plugin migrations on test connection.
|
||||
['plugin' => 'CakeContactUs'],
|
||||
['plugin' => 'Captcha'],
|
||||
]);
|
||||
//$migrator = new Migrator();
|
||||
//$migrator->runMany([
|
||||
// // Run app migrations on test connection.
|
||||
// ['connection' => 'test'],
|
||||
// // Run plugin migrations on test connection.
|
||||
// ['plugin' => 'CakeContactUs'],
|
||||
// ['plugin' => 'Captcha'],
|
||||
//]);
|
||||
|
||||
Reference in New Issue
Block a user