@@ -5,7 +5,7 @@ PHPUnit testing scaffold for CodeIgniter 4 modules
55## Overview
66
77Not a module itself but a testing scaffold for CodeIgniter 4 modules,
8- ** module-tests ** makes it easy to setup PHPUnit tests in your modules.
8+ ** ModuleTests ** makes it easy to setup PHPUnit tests in your modules.
99
1010To read more on Unit Testing in CodeIgniter 4 visit the
1111[ User Guide] ( https://codeigniter4.github.io/userguide/testing/index.html ) .
@@ -53,6 +53,23 @@ composer.lock
5353Examples of ** composer.json** and ** .gitignore** are located in the [ examples/] ( examples/ )
5454folder if you need a starting point.
5555
56+ ### Paths
57+
58+ A number of framework and testing path are defined as constants during the
59+ [ bootstrap process] ( src/tests/_support/bootstrap.php ) . These default to the assumed locations
60+ if you have a standard directory structure. If you move directories around you will need to
61+ review these paths and set them appropriately.
62+
63+ * ** APPPATH** : ` $paths->appDirectory `
64+ * ** ROOTPATH** : ` APPPATH . '../' `
65+ * ** FCPATH** : ` ROOTPATH . 'public/' `
66+ * ** WRITEPATH** : ` $paths->writableDirectory `
67+ * ** SYSTEMPATH** : ` $paths->systemDirectory `
68+ * ** CIPATH** : ` SYSTEMPATH . '../ `
69+ * ** SUPPORTPATH** : ` CIPATH . 'tests/_support/ `
70+ * ** PROJECTSUPPORTPATH** : * bootstrap.php directory*
71+ * ** TESTPATH** : ` PROJECTSUPPORTPATH . '../ `
72+
5673## Updating
5774
5875As this repo is updated with bugfixes and improvements you will want to update your
@@ -74,3 +91,10 @@ in **build/logs/**.
7491## Code Coverage
7592
7693See the docs on [ Code Coverage] ( docs/COVERAGE.md ) .
94+
95+ ## Project Testing
96+
97+ ** ModuleTests** is designed to be added to your modular library which will be included into
98+ other CodeIgniter 4 projects. If you are looking for a testing scaffold for applications
99+ built using CodeIgniter 4 as their core framework, check out
100+ [ Codeigniter4Projects/ProjectTests] ( https://github.com/codeigniter4projects/project-tests ) .
0 commit comments