File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "homepage" : " https://cakephp.org" ,
77 "require" : {
88 "php" : " >=8.1" ,
9- "cakephp/cakephp" : " ^5.0.1 " ,
9+ "cakephp/cakephp" : " dev-5.next as 5.1.0 " ,
1010 "cakephp/migrations" : " ^4.0.0" ,
1111 "cakephp/plugin-installer" : " ^2.0" ,
1212 "mobiledetect/mobiledetectlib" : " ^4.8.03"
1616 "cakephp/cakephp-codesniffer" : " ^5.0" ,
1717 "cakephp/debug_kit" : " ^5.0.0" ,
1818 "josegonzalez/dotenv" : " ^4.0" ,
19- "phpunit/phpunit" : " ^10.1.0 "
19+ "phpunit/phpunit" : " ^10.5.5 "
2020 },
2121 "suggest" : {
2222 "cakephp/repl" : " Console tools for a REPL interface for CakePHP applications." ,
Original file line number Diff line number Diff line change 1818use Cake \Chronos \Chronos ;
1919use Cake \Core \Configure ;
2020use Cake \Datasource \ConnectionManager ;
21+ use Cake \TestSuite \ConnectionHelper ;
2122use Migrations \TestSuite \Migrator ;
2223
2324/**
5657// has been written to.
5758session_id ('cli ' );
5859
60+ // Connection aliasing needs to happen before migrations are run.
61+ // Otherwise, table objects inside migrations would use the default datasource
62+ ConnectionHelper::addTestAliases ();
63+
5964// Use migrations to build test database schema.
6065//
6166// Will rebuild the database if the migration state differs
You can’t perform that action at this time.
0 commit comments