File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -425,10 +425,17 @@ public function test_publish()
425
425
// Act & Assert
426
426
$ expectedPublishBase = dirname (__DIR__ );
427
427
428
- $ this ->artisan ('vendor:publish --tag=cloud-tasks --force ' )
429
- ->expectsOutput ('Copied File [ ' . $ expectedPublishBase . '/config/cloud-tasks.php] To [/config/cloud-tasks.php] ' )
430
- ->expectsOutput ('Copied Directory [ ' . $ expectedPublishBase . '/dashboard/dist] To [/public/vendor/cloud-tasks] ' )
431
- ->expectsOutput ('Publishing complete. ' );
428
+ if (version_compare (app ()->version (), '9.0.0 ' , '>= ' )) {
429
+ $ this ->artisan ('vendor:publish --tag=cloud-tasks --force ' )
430
+ ->expectsOutputToContain ('Publishing [cloud-tasks] assets. ' )
431
+ ->expectsOutputToContain ('Copying file [ ' . $ expectedPublishBase . '/config/cloud-tasks.php] to [config/cloud-tasks.php] ' )
432
+ ->expectsOutputToContain ('Copying directory [ ' . $ expectedPublishBase . '/dashboard/dist] to [public/vendor/cloud-tasks] ' );
433
+ } else {
434
+ $ this ->artisan ('vendor:publish --tag=cloud-tasks --force ' )
435
+ ->expectsOutput ('Copied File [ ' . $ expectedPublishBase . '/config/cloud-tasks.php] To [/config/cloud-tasks.php] ' )
436
+ ->expectsOutput ('Copied Directory [ ' . $ expectedPublishBase . '/dashboard/dist] To [/public/vendor/cloud-tasks] ' )
437
+ ->expectsOutput ('Publishing complete. ' );
438
+ }
432
439
}
433
440
434
441
/**
You can’t perform that action at this time.
0 commit comments