@@ -69,6 +69,7 @@ public function setUp()
69
69
$ this ->filesystem ->expects ($ this ->once ())->method ('getDirectoryWrite ' )->willReturn ($ this ->write );
70
70
$ this ->phpReadinessCheck = $ this ->getMock ('Magento\Setup\Model\PhpReadinessCheck ' , [], [], '' , false );
71
71
$ this ->pathBuilder = $ this ->getMock ('Magento\Setup\Model\PathBuilder ' , [], [], '' , false );
72
+ $ this ->pathBuilder ->expects ($ this ->once ())->method ('build ' )->willReturn ([__FILE__ ]);
72
73
$ this ->readinessCheck = new ReadinessCheck (
73
74
$ this ->dbValidator ,
74
75
$ this ->deploymentConfig ,
@@ -100,6 +101,10 @@ public function testRunReadinessCheckNoDbAccess()
100
101
'error ' => 'Connection failure '
101
102
],
102
103
ReadinessCheck::KEY_PHP_CHECKS => $ this ->expected ,
104
+ ReadinessCheck::KEY_DIR_AND_FILE_PATHS => [
105
+ ReadinessCheck::KEY_LIST => [__FILE__ ],
106
+ ReadinessCheck::KEY_ERROR => ""
107
+ ],
103
108
ReadinessCheck::KEY_CURRENT_TIMESTAMP => 100
104
109
];
105
110
$ expectedJson = json_encode ($ expected , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
@@ -122,6 +127,10 @@ public function testRunReadinessCheckNoDbWriteAccess()
122
127
'error ' => 'Database user username does not have write access. '
123
128
],
124
129
ReadinessCheck::KEY_PHP_CHECKS => $ this ->expected ,
130
+ ReadinessCheck::KEY_DIR_AND_FILE_PATHS => [
131
+ ReadinessCheck::KEY_LIST => [__FILE__ ],
132
+ ReadinessCheck::KEY_ERROR => ""
133
+ ],
125
134
ReadinessCheck::KEY_CURRENT_TIMESTAMP => 100
126
135
];
127
136
$ expectedJson = json_encode ($ expected , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
@@ -139,6 +148,10 @@ public function testRunReadinessCheck()
139
148
$ expected = [
140
149
ReadinessCheck::KEY_READINESS_CHECKS => [ReadinessCheck::KEY_DB_WRITE_PERMISSION_VERIFIED => true ],
141
150
ReadinessCheck::KEY_PHP_CHECKS => $ this ->expected ,
151
+ ReadinessCheck::KEY_DIR_AND_FILE_PATHS => [
152
+ ReadinessCheck::KEY_LIST => [__FILE__ ],
153
+ ReadinessCheck::KEY_ERROR => ""
154
+ ],
142
155
ReadinessCheck::KEY_CURRENT_TIMESTAMP => 100
143
156
];
144
157
$ expectedJson = json_encode ($ expected , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES );
@@ -156,6 +169,10 @@ public function testRunReadinessCheckLastTimestamp()
156
169
$ expected = [
157
170
ReadinessCheck::KEY_READINESS_CHECKS => [ReadinessCheck::KEY_DB_WRITE_PERMISSION_VERIFIED => true ],
158
171
ReadinessCheck::KEY_PHP_CHECKS => $ this ->expected ,
172
+ ReadinessCheck::KEY_DIR_AND_FILE_PATHS => [
173
+ ReadinessCheck::KEY_LIST => [__FILE__ ],
174
+ ReadinessCheck::KEY_ERROR => ""
175
+ ],
159
176
ReadinessCheck::KEY_LAST_TIMESTAMP => 50 ,
160
177
ReadinessCheck::KEY_CURRENT_TIMESTAMP => 100 ,
161
178
];
0 commit comments