This repository was archived by the owner on May 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,18 @@ for **CIModuleTests**:
2626
2727See the provided [ composer.json] ( src/composer.json ) for examples.
2828
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+
2941## Creating Tests
3042
3143All 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
7991As this repo is updated with bugfixes and improvements you will want to update the code
8092merged into your modules. Because tests need to be top-level and should not include their
8193own 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