@@ -210,8 +210,8 @@ public function testBasic() {
210
210
$ this ->assertRegExp ('/More than one of branch \\/tag \\/sha specified, using sha./ ' , $ this ->getOutput ());
211
211
$ this ->assertRegExp ('/HEAD now at 04256b5992d8b4a4fae25c7cb7888583749fabc0/ ' , $ this ->getOutput ());
212
212
213
- // Check that VERSION.txt was created.
214
- $ this ->assertFileExists ($ this ->deploySite () . '/VERSION.txt ' );
213
+ // Check that VERSION.yml was created.
214
+ $ this ->assertFileExists ($ this ->deploySite () . '/VERSION.yml ' );
215
215
216
216
// Check that a invalid tag/branch prints the proper error message.
217
217
$ this ->drush ('deploy 2>&1 ' , array ('@deployotron ' ), array (
@@ -260,17 +260,17 @@ public function testBasic() {
260
260
), NULL , $ this ->webroot ());
261
261
$ this ->assertRegExp ('/HEAD now at b9471948c3f83a665dd4f106aba3de8962d69b42/ ' , $ this ->getOutput ());
262
262
263
- // VERSION.txt should still exist.
264
- $ this ->assertFileExists ($ this ->deploySite () . '/VERSION.txt ' );
263
+ // VERSION.yml should still exist.
264
+ $ this ->assertFileExists ($ this ->deploySite () . '/VERSION.yml ' );
265
265
// Check content.
266
- $ version_txt = file_get_contents ($ this ->deploySite () . '/VERSION.txt ' );
267
- $ this ->assertRegExp ('/Deployment info/ ' , $ version_txt );
268
- $ this ->assertRegExp ('/SHA: b9471948c3f83a665dd4f106aba3de8962d69b42/ ' , $ version_txt );
269
- $ this ->assertRegExp ('/Time of deployment: / ' , $ version_txt );
270
- $ this ->assertRegExp ('/Deployer: / ' , $ version_txt );
266
+ $ version_yml = file_get_contents ($ this ->deploySite () . '/VERSION.yml ' );
267
+ $ this ->assertRegExp ('/Deployment info/ ' , $ version_yml );
268
+ $ this ->assertRegExp ('/SHA: b9471948c3f83a665dd4f106aba3de8962d69b42/ ' , $ version_yml );
269
+ $ this ->assertRegExp ('/Time of deployment: / ' , $ version_yml );
270
+ $ this ->assertRegExp ('/Deployer: / ' , $ version_yml );
271
271
272
272
// Check that the switch for echo didn't got written to the file.
273
- $ this ->assertNotRegExp ('/-e/ ' , $ version_txt );
273
+ $ this ->assertNotRegExp ('/-e/ ' , $ version_yml );
274
274
275
275
// Check that a file in the way of a new file will cause the deployment to
276
276
// roll back.
@@ -290,9 +290,9 @@ public function testBasic() {
290
290
unlink ($ this ->deploySite () . '/sites/all/modules/coffee ' );
291
291
$ this ->drush ('deploy 2>&1 ' , array ('@deployotron ' ), array ('y ' => TRUE ), NULL , $ this ->webroot ());
292
292
$ this ->assertRegExp ('/HEAD now at fbcaa29d45716edcbedc3c325bfbab828f1ce838/ ' , $ this ->getOutput ());
293
- $ version_txt = file_get_contents ($ this ->deploySite () . '/VERSION.txt ' );
294
- $ this ->assertRegExp ('/Branch: master/ ' , $ version_txt );
295
- $ this ->assertRegExp ('/SHA: fbcaa29d45716edcbedc3c325bfbab828f1ce838/ ' , $ version_txt );
293
+ $ version_yml = file_get_contents ($ this ->deploySite () . '/VERSION.yml ' );
294
+ $ this ->assertRegExp ('/Branch: master/ ' , $ version_yml );
295
+ $ this ->assertRegExp ('/SHA: fbcaa29d45716edcbedc3c325bfbab828f1ce838/ ' , $ version_yml );
296
296
}
297
297
298
298
/**
@@ -462,7 +462,7 @@ public function testCommandOverride() {
462
462
/**
463
463
* Test no-deploy.
464
464
*
465
- * And that Flowdock and VERSION.txt prints the appropriate message.
465
+ * And that Flowdock and VERSION.yml prints the appropriate message.
466
466
*/
467
467
public function testNoDeploy () {
468
468
$ this ->writeAlias (array (
@@ -480,8 +480,8 @@ public function testNoDeploy() {
480
480
'no-deploy ' => TRUE ,
481
481
'flowdock-token ' => $ this ->flowdockToken ,
482
482
), NULL , $ this ->webroot ());
483
- // Check VERSION.txt message.
484
- $ this ->assertRegExp ('/No version deployed, not creating\/updating VERSION.txt / ' , $ this ->getOutput ());
483
+ // Check VERSION.yml message.
484
+ $ this ->assertRegExp ('/No version deployed, not creating\/updating VERSION.yml / ' , $ this ->getOutput ());
485
485
486
486
// Check Flowdock message.
487
487
$ this ->assertRegExp ('/No version deployed, not sending Flowdock notification/ ' , $ this ->getOutput ());
0 commit comments