@@ -41,7 +41,7 @@ public function output_writes_nothing_for_empty_tree()
41
41
{
42
42
$ this ->files ->expects ('stub ' )
43
43
->with ('migration.stub ' )
44
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
44
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
45
45
46
46
$ this ->files ->shouldNotHaveReceived ('put ' );
47
47
@@ -56,7 +56,7 @@ public function output_writes_migration_for_model_tree($definition, $path, $migr
56
56
{
57
57
$ this ->files ->expects ('stub ' )
58
58
->with ('migration.stub ' )
59
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
59
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
60
60
61
61
$ now = Carbon::now ();
62
62
Carbon::setTestNow ($ now );
@@ -84,7 +84,7 @@ public function output_updates_migration_for_model_tree($definition, $path, $mig
84
84
{
85
85
$ this ->files ->expects ('stub ' )
86
86
->with ('migration.stub ' )
87
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
87
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
88
88
89
89
$ yday = Carbon::yesterday ();
90
90
@@ -116,7 +116,7 @@ public function output_writes_migration_for_foreign_shorthand()
116
116
{
117
117
$ this ->files ->expects ('stub ' )
118
118
->with ('migration.stub ' )
119
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
119
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
120
120
121
121
$ now = Carbon::now ();
122
122
Carbon::setTestNow ($ now );
@@ -141,7 +141,7 @@ public function output_uses_past_timestamp_for_multiple_migrations()
141
141
{
142
142
$ this ->files ->expects ('stub ' )
143
143
->with ('migration.stub ' )
144
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
144
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
145
145
146
146
$ now = Carbon::now ();
147
147
Carbon::setTestNow ($ now );
@@ -175,7 +175,7 @@ public function output_uses_proper_data_type_for_id_columns_in_laravel6()
175
175
176
176
$ this ->files ->expects ('stub ' )
177
177
->with ('migration.stub ' )
178
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
178
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
179
179
180
180
$ now = Carbon::now ();
181
181
Carbon::setTestNow ($ now );
@@ -202,7 +202,7 @@ public function output_creates_constraints_for_unconventional_foreign_reference_
202
202
203
203
$ this ->files ->expects ('stub ' )
204
204
->with ('migration.stub ' )
205
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
205
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
206
206
207
207
$ now = Carbon::now ();
208
208
Carbon::setTestNow ($ now );
@@ -235,7 +235,7 @@ public function output_creates_constraints_for_unconventional_foreign_reference_
235
235
236
236
$ this ->files ->expects ('stub ' )
237
237
->with ('migration.stub ' )
238
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
238
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
239
239
240
240
$ now = Carbon::now ();
241
241
Carbon::setTestNow ($ now );
@@ -260,7 +260,7 @@ public function output_also_creates_pivot_table_migration()
260
260
{
261
261
$ this ->files ->expects ('stub ' )
262
262
->with ('migration.stub ' )
263
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
263
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
264
264
265
265
$ now = Carbon::now ();
266
266
Carbon::setTestNow ($ now );
@@ -288,7 +288,7 @@ public function output_also_updates_pivot_table_migration()
288
288
{
289
289
$ this ->files ->expects ('stub ' )
290
290
->with ('migration.stub ' )
291
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
291
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
292
292
293
293
$ yday = Carbon::yesterday ();
294
294
@@ -330,7 +330,7 @@ public function output_also_creates_pivot_table_migration_laravel6()
330
330
331
331
$ this ->files ->expects ('stub ' )
332
332
->with ('migration.stub ' )
333
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
333
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
334
334
335
335
$ now = Carbon::now ();
336
336
Carbon::setTestNow ($ now );
@@ -361,7 +361,7 @@ public function output_also_creates_constraints_for_pivot_table_migration()
361
361
362
362
$ this ->files ->expects ('stub ' )
363
363
->with ('migration.stub ' )
364
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
364
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
365
365
366
366
$ now = Carbon::now ();
367
367
Carbon::setTestNow ($ now );
@@ -398,7 +398,7 @@ public function output_also_creates_constraints_for_pivot_table_migration_larave
398
398
399
399
$ this ->files ->expects ('stub ' )
400
400
->with ('migration.stub ' )
401
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
401
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
402
402
403
403
$ now = Carbon::now ();
404
404
Carbon::setTestNow ($ now );
@@ -426,7 +426,7 @@ public function output_does_not_duplicate_pivot_table_migration()
426
426
{
427
427
$ this ->files ->expects ('stub ' )
428
428
->with ('migration.stub ' )
429
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
429
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
430
430
431
431
$ now = Carbon::now ();
432
432
Carbon::setTestNow ($ now );
@@ -463,7 +463,7 @@ public function output_does_not_duplicate_pivot_table_migration_laravel6()
463
463
464
464
$ this ->files ->expects ('stub ' )
465
465
->with ('migration.stub ' )
466
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
466
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
467
467
468
468
$ now = Carbon::now ();
469
469
Carbon::setTestNow ($ now );
@@ -494,7 +494,7 @@ public function output_also_creates_pivot_table_migration_with_custom_name()
494
494
{
495
495
$ this ->files ->expects ('stub ' )
496
496
->with ('migration.stub ' )
497
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
497
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
498
498
499
499
$ now = Carbon::now ();
500
500
Carbon::setTestNow ($ now );
@@ -528,7 +528,7 @@ public function output_also_creates_pivot_table_migration_with_custom_name_larav
528
528
529
529
$ this ->files ->expects ('stub ' )
530
530
->with ('migration.stub ' )
531
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
531
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
532
532
533
533
$ now = Carbon::now ();
534
534
Carbon::setTestNow ($ now );
@@ -558,7 +558,7 @@ public function output_creates_foreign_keys_with_nullable_chained_correctly()
558
558
559
559
$ this ->files ->expects ('stub ' )
560
560
->with ('migration.stub ' )
561
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
561
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
562
562
563
563
$ now = Carbon::now ();
564
564
Carbon::setTestNow ($ now );
@@ -592,7 +592,7 @@ public function output_creates_foreign_keys_with_nullable_chained_correctly_lara
592
592
593
593
$ this ->files ->expects ('stub ' )
594
594
->with ('migration.stub ' )
595
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
595
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
596
596
597
597
$ now = Carbon::now ();
598
598
Carbon::setTestNow ($ now );
@@ -618,7 +618,7 @@ public function output_creates_foreign_keys_with_on_delete()
618
618
{
619
619
$ this ->files ->expects ('stub ' )
620
620
->with ('migration.stub ' )
621
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
621
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
622
622
623
623
$ now = Carbon::now ();
624
624
Carbon::setTestNow ($ now );
@@ -650,7 +650,7 @@ public function output_creates_foreign_keys_with_on_delete_laravel6()
650
650
651
651
$ this ->files ->expects ('stub ' )
652
652
->with ('migration.stub ' )
653
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
653
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
654
654
655
655
$ now = Carbon::now ();
656
656
Carbon::setTestNow ($ now );
@@ -676,7 +676,7 @@ public function output_works_with_polymorphic_relationships()
676
676
{
677
677
$ this ->files ->expects ('stub ' )
678
678
->with ('migration.stub ' )
679
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
679
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
680
680
681
681
$ now = Carbon::now ();
682
682
Carbon::setTestNow ($ now );
@@ -713,7 +713,7 @@ public function output_works_with_polymorphic_relationships_laravel6()
713
713
714
714
$ this ->files ->expects ('stub ' )
715
715
->with ('migration.stub ' )
716
- ->andReturn (file_get_contents ( ' stubs/ migration.stub ' ));
716
+ ->andReturn ($ this -> stub ( ' migration.stub ' ));
717
717
718
718
$ now = Carbon::now ();
719
719
Carbon::setTestNow ($ now );
0 commit comments