This repository was archived by the owner on May 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,18 @@ for **CIModuleTests**:
26
26
27
27
See the provided [ composer.json] ( src/composer.json ) for examples.
28
28
29
+ ## Customizing
30
+
31
+ The ** _ support** directory comes loaded with easy-to-use examples of test cases and their
32
+ support files, but you will probably want to modify or replace these with your own versions.
33
+ There is no harm in leaving files in place you do not need.
34
+ * ** tests/_ support/DatabaseTestCase.php**
35
+ * ** tests/_ support/SessionTestCase.php**
36
+ * ** tests/_ support/DatabaseTestCase.php**
37
+ * ** tests/_ support/Database/Migrations/create_test_tables.php**
38
+ * ** tests/_ support/Database/Seeds/ExampleSeeder.php**
39
+ * ** tests/_ support/Models/ExampleModel.php**
40
+
29
41
## Creating Tests
30
42
31
43
All tests go in the ** tests/** directory. There are two generic subfolders for you,
@@ -79,3 +91,7 @@ Other common modifications would be removing the attributes from the whitelist e
79
91
As this repo is updated with bugfixes and improvements you will want to update the code
80
92
merged into your modules. Because tests need to be top-level and should not include their
81
93
own repository info you will need to handle updates manually.
94
+
95
+ If you added ** CIModuleTests** to your package via Composer you can access the latest
96
+ version by running ` composer update ` and merging files from
97
+ ** vendor/mgatner/ci-module-tests/src/** into your ** tests/** directory.
You can’t perform that action at this time.
0 commit comments