diff --git a/docs/content/en/docs/testing.md b/docs/content/en/docs/testing.md index 3d150f34..86286275 100644 --- a/docs/content/en/docs/testing.md +++ b/docs/content/en/docs/testing.md @@ -9,12 +9,9 @@ Those tests can be run and debugged on your computer without additional setup, y physical device to run them. ## Setup -In addition to the moor dependencies you already have, add `moor_ffi` as a dev dependency. If you're already using `moor_ffi` -as a regular dependency, you can skip this. -```yaml -dev_dependencies: - moor_ffi: ^0.5.0 # or latest version -``` + +For tests, you need to use a `VmDatabase` included in `moor` version `3.3.0` and above. You can also test your database on older moor +versions by using the `moor_ffi` package. For this guide, we're going to test a very simple database that stores user names. The only important change from a regular moor database is the constructor: We make the `QueryExecutor` argument explicit instead of having a no-args constructor that passes diff --git a/moor/test/integration_tests/migrations_integration_test.dart b/moor/test/integration_tests/migrations_integration_test.dart index 505d4a4b..f9cef223 100644 --- a/moor/test/integration_tests/migrations_integration_test.dart +++ b/moor/test/integration_tests/migrations_integration_test.dart @@ -38,7 +38,7 @@ void main() { ); final createStmt = await db - .customSelect("SELECT sql FROM sqlite_schema WHERE name = 'todos'") + .customSelect("SELECT sql FROM sqlite_master WHERE name = 'todos'") .map((row) => row.readString('sql')) .getSingle(); @@ -80,7 +80,7 @@ void main() { ); final createStmt = await db - .customSelect("SELECT sql FROM sqlite_schema WHERE name = 'todos'") + .customSelect("SELECT sql FROM sqlite_master WHERE name = 'todos'") .map((row) => row.readString('sql')) .getSingle();