fixing test for laravel/framework#5480