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

This commit is contained in:
2026-01-28 01:23:58 -08:00
parent c267e6b521
commit 1be025aa22
8 changed files with 78 additions and 20 deletions

View File

@@ -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'],
//]);