solofeed's avatar

After update from 5.3 to 5.4 have problem with function route().

In our tests we use route for building routes.

$url = route('alias');

Route function does not return a valid url.

During debugging i was found place, where exist possible problem.

In UrlGenerator(311)

$this->app->make('request')->root() 

Returns empty string instead of host from $_SERVER.

0 likes
2 replies
solofeed's avatar

On version 5.3 it working, but on 5.4 broken.

    public function testCreateRequiredFields()
    {
        $url = route('budgets-create', ['campaign_id' => self::$campaign->id]);
        $this->checkPostBadRequestForUser(self::$webmaster, ['amount' => ''], $url, 
         [
            'amount' => [trans('validation.required')],
        ]);
   }

Please or to participate in this conversation.