Skip to content

Commit

Permalink
Add fallback database to improve first run
Browse files Browse the repository at this point in the history
Also update code example in the comments.
  • Loading branch information
markstory committed Sep 19, 2021
1 parent 659671a commit 0435e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/app_local.example.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
'password' => 'secret',
'database' => 'test_myapp',
//'schema' => 'myapp',
'url' => env('DATABASE_TEST_URL', null),
'url' => env('DATABASE_TEST_URL', 'sqlite://127.0.0.1/tests.sqlite'),
],
],

Expand Down
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@
// If you are not using CakePHP's migrations you can
// hook into your migration tool of choice here or
// load schema from a SQL dump file with
// \Cake\TestSuite\Schema\SchemaManager::create('tests', './tests/schema.sql');
// use Cake\TestSuite\SchemaLoader;
// (new SchemaManager())->loadSqlFiles('./tests/schema.sql', 'test');
(new Migrator())->run();

0 comments on commit 0435e66

Please sign in to comment.