Skip to content

Commit

Permalink
Fixed skipped test for facade deprecation skip - the facade isn't dep…
Browse files Browse the repository at this point in the history
…recated - the access via the global NS is.
  • Loading branch information
zakhenry committed Jan 13, 2016
1 parent ff8be1a commit 84f94db
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api/tests/SpiraAuthTest.php
Expand Up @@ -8,7 +8,7 @@
* For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
*/

use Illuminate\Http\Request;
//use Illuminate\Http\Request;
use Spira\Auth\Driver\Guard;

class SpiraAuthTest extends TestCase
Expand Down Expand Up @@ -53,13 +53,10 @@ public function testRequestAliasUserResolver()

public function testRequestFacadeUserResolver()
{
$this->markTestSkipped('Request facade is deprecated');

$user = $this->createUser();
$token = $this->tokenFromUser($user);

/** @var Request $request */
$request = \Request::getFacadeRoot();
$request = Illuminate\Support\Facades\Request::getFacadeRoot();
$request->headers->set('Authorization', 'Bearer '.$token);
$this->assertEquals($user->user_id, $request->user()->user_id);
}
Expand Down

0 comments on commit 84f94db

Please sign in to comment.