This repository was archived by the owner on May 18, 2024. It is now read-only.
File tree 3 files changed +22
-2
lines changed 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,23 @@ 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. 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
+
56
73
## Updating
57
74
58
75
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 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 17
17
define ('APPPATH ' , realpath ($ paths ->appDirectory ) . DIRECTORY_SEPARATOR );
18
18
define ('ROOTPATH ' , realpath (APPPATH . '../ ' ) . DIRECTORY_SEPARATOR );
19
19
define ('FCPATH ' , realpath (ROOTPATH . 'public ' ) . DIRECTORY_SEPARATOR );
20
- define ('SYSTEMPATH ' , realpath ($ paths ->systemDirectory ) . DIRECTORY_SEPARATOR );
21
20
define ('WRITEPATH ' , realpath ($ paths ->writableDirectory ) . DIRECTORY_SEPARATOR );
22
- define ('SUPPORTPATH ' , realpath (ROOTPATH . 'tests/_support ' ) . DIRECTORY_SEPARATOR );
21
+ define ('SYSTEMPATH ' , realpath ($ paths ->systemDirectory ) . DIRECTORY_SEPARATOR );
22
+ define ('CIPATH ' , realpath (SYSTEMPATH . '../ ' ) . DIRECTORY_SEPARATOR );
23
+ define ('SUPPORTPATH ' , realpath (CIPATH . 'tests/_support ' ) . DIRECTORY_SEPARATOR );
23
24
24
25
// Define necessary module test path constants
25
26
define ('MODULESUPPORTPATH ' , realpath (__DIR__ ) . DIRECTORY_SEPARATOR );
You can’t perform that action at this time.
0 commit comments