You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/Documentation/Installation.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,13 @@ Load the plugin
14
14
```
15
15
bin/cake plugin load CakeDC/DbTest
16
16
```
17
-
Note you'll need this plugin loaded in the `cli` section of your `Application::bootstrap`, around the line loading Bake Plugin: `$this->addPlugin('Bake');`
17
+
Note you'll need this plugin loaded in the `cli` section of your `Application::bootstrap`, around the line loading
18
+
Bake Plugin: `$this->addPlugin('DbTestPlugin');`
18
19
19
20
Configuration
20
21
-------------
21
22
22
-
Plugin requires an additional database connection to create the database snapshot named **test_template**.
23
+
Plugin requires an additional database connection to create the database snapshot named **test_template**.
23
24
This connection is used as an unchangeable source of test fixtures.
24
25
25
26
Add the next configuration setting into app.php
@@ -29,8 +30,8 @@ Add the next configuration setting into app.php
29
30
'Datasources' => [
30
31
// ...
31
32
'test_template' => [
32
-
'className' => 'Cake\Database\Connection',
33
-
'driver' => 'Cake\Database\Driver\Mysql',
33
+
'className' => \Cake\Database\Connection::class,
34
+
'driver' => \Cake\Database\Driver\Mysql::class,
34
35
'persistent' => false,
35
36
'host' => 'localhost',
36
37
'username' => 'my_app',
@@ -44,11 +45,14 @@ Add the next configuration setting into app.php
44
45
45
46
PHPUnit
46
47
-------
47
-
Copy https://github.com/CakeDC/cakephp-db-test/blob/master/phpunit.xml.dbtest as phpunit.xml.dist in your project (modify if needed)
48
+
Copy https://github.com/CakeDC/cakephp-db-test/blob/master/phpunit.xml.dbtest as phpunit.xml.dist in your
49
+
project (modify if needed)
48
50
49
51
Fixture database
50
52
----------------
51
53
52
-
Note from now on, you will NOT use fixture files, but rely on a "fixture database" allowing you to run migrations to it, modify your fixture data with your sql editor, or import fixtures from the live database using a regular table or database import tool, for example `mysqldump`.
54
+
Note from now on, you will NOT use fixture files, but rely on a "fixture database" allowing you to run
55
+
migrations to it, modify your fixture data with your sql editor, or import fixtures from the live
56
+
database using a regular table or database import tool, for example `mysqldump`.
Copy file name to clipboardExpand all lines: Docs/Documentation/Overview.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ Generic cycle of test execution under DbTest
15
15
* Before test method starts, DbTest initializes the transaction.
16
16
* After test method finishes, DbTest rollbacks transaction.
17
17
18
-
This way database modifications are quickly restored, but requires that the table uses a transaction engine like InnoDb.
18
+
This way database modifications are quickly restored, but requires that the table uses a transaction engine
19
+
like InnoDb.
19
20
20
21
Support
21
22
-------
@@ -27,11 +28,13 @@ Commercial support is also available, [contact us](http://cakedc.com/contact) fo
27
28
Contributing
28
29
------------
29
30
30
-
If you'd like to contribute new features, enhancements or bug fixes to the plugin, just read our [Contribution Guidelines](http://cakedc.com/plugins) for detailed instructions.
31
+
If you'd like to contribute new features, enhancements or bug fixes to the plugin, just read our
32
+
[Contribution Guidelines](http://cakedc.com/plugins) for detailed instructions.
31
33
32
34
License
33
35
-------
34
36
35
-
Copyright 2007-2014 Cake Development Corporation (CakeDC). All rights reserved.
37
+
Copyright 2013-2023 Cake Development Corporation (CakeDC). All rights reserved.
36
38
37
-
Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.
39
+
Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository
40
+
must retain the copyright notice found in each file.
0 commit comments