This repository was archived by the owner on May 18, 2024. It is now read-only.
File tree 4 files changed +24
-4
lines changed
4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,24 @@ composer.lock
53
53
Examples of ** composer.json** and ** .gitignore** are located in the [ examples/] ( examples/ )
54
54
folder if you need a starting point.
55
55
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 and you installed the framework via Composer.
61
+ If you move directories around or do no use Composer you will need to review these paths
62
+ and set them appropriately.
63
+
64
+ * ** APPPATH** : ` $paths->appDirectory `
65
+ * ** ROOTPATH** : ` APPPATH . '../' `
66
+ * ** FCPATH** : ` ROOTPATH . 'public/' `
67
+ * ** WRITEPATH** : ` $paths->writableDirectory `
68
+ * ** SYSTEMPATH** : ` $paths->systemDirectory `
69
+ * ** CIPATH** : ` SYSTEMPATH . '../ `
70
+ * ** SUPPORTPATH** : ` CIPATH . 'tests/_support/ `
71
+ * ** PROJECTSUPPORTPATH** : * bootstrap.php directory*
72
+ * ** TESTPATH** : ` PROJECTSUPPORTPATH . '../ `
73
+
56
74
## Updating
57
75
58
76
As this repo is updated with bugfixes and improvements you will want to update your
Original file line number Diff line number Diff line change 17
17
18
18
<filter >
19
19
<whitelist addUncoveredFilesFromWhitelist =" true" processUncoveredFilesFromWhitelist =" true" >
20
- <directory suffix =" .php" >./src </directory >
20
+ <directory suffix =" .php" >./app </directory >
21
21
<exclude >
22
- <directory suffix =" .php" >./src /Views</directory >
23
- <file >./src /Config/Routes.php</file >
22
+ <directory suffix =" .php" >./app /Views</directory >
23
+ <file >./app /Config/Routes.php</file >
24
24
</exclude >
25
25
</whitelist >
26
26
</filter >
Original file line number Diff line number Diff line change 4
4
5
5
class CreateTestTables extends Migration
6
6
{
7
+ protected $ DBGroup = 'tests ' ;
8
+
7
9
public function up ()
8
10
{
9
11
$ fields = [
Original file line number Diff line number Diff line change 20
20
define ('WRITEPATH ' , realpath ($ paths ->writableDirectory ) . DIRECTORY_SEPARATOR );
21
21
define ('SYSTEMPATH ' , realpath ($ paths ->systemDirectory ) . DIRECTORY_SEPARATOR );
22
22
define ('CIPATH ' , realpath (SYSTEMPATH . '../ ' ) . DIRECTORY_SEPARATOR );
23
- define ('SUPPORTPATH ' , realpath (ROOTPATH . 'tests/_support ' ) . DIRECTORY_SEPARATOR );
23
+ define ('SUPPORTPATH ' , realpath (CIPATH . 'tests/_support ' ) . DIRECTORY_SEPARATOR );
24
24
25
25
// Define necessary project test path constants
26
26
define ('PROJECTSUPPORTPATH ' , realpath (__DIR__ ) . DIRECTORY_SEPARATOR );
You can’t perform that action at this time.
0 commit comments