3
3
namespace Spatie \Feed \Test ;
4
4
5
5
use Carbon \Carbon ;
6
+ use Illuminate \Support \Facades \Route ;
6
7
use Illuminate \Support \Str ;
7
8
use Spatie \Feed \FeedServiceProvider ;
8
9
use Spatie \Snapshots \MatchesSnapshots ;
@@ -99,7 +100,7 @@ protected function getEnvironmentSetUp($app)
99
100
}
100
101
101
102
102
- private function renderBlade ($ app , string $ template , array $ data = [])
103
+ private function renderBlade ($ app , string $ template , array $ data = []): string
103
104
{
104
105
$ tempDirectory = dirname (__FILE__ ) . '/temp ' ;
105
106
@@ -114,15 +115,15 @@ private function renderBlade($app, string $template, array $data = [])
114
115
}
115
116
116
117
117
- protected function setUpRoutes ($ app )
118
+ protected function setUpRoutes ($ app ): void
118
119
{
119
- $ app [ ' router ' ]-> feeds ('feedBaseUrl ' );
120
+ Route:: feeds ('feedBaseUrl ' );
120
121
121
- $ app [ ' router ' ]-> get ('/test-route ' , function () use ($ app ) {
122
+ Route:: get ('/test-route ' , function () use ($ app ) {
122
123
return $ app ['view ' ]->make ('feed::links ' );
123
124
});
124
125
125
- $ app [ ' router ' ]-> get ('/test-route-blade-component ' , function () use ($ app ) {
126
+ Route:: get ('/test-route-blade-component ' , function () use ($ app ) {
126
127
return $ this ->renderBlade ($ app , '<x-feed-links /> ' );
127
128
});
128
129
}
0 commit comments