Skip to content

Commit bf0835c

Browse files
committed
Update test
1 parent 151cd17 commit bf0835c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/Foundation/Testing/Concerns/MakesHttpRequestsTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ public function testFromSetsHeaderAndSession()
1414
$this->assertSame('previous/url', $this->app['session']->previousUrl());
1515
}
1616

17-
public function testBearerTokenSetsHeader()
17+
public function testWithTokenSetsAuthorizationHeader()
1818
{
19-
$this->withBearerToken('foobar');
20-
19+
$this->withToken('foobar');
2120
$this->assertSame('Bearer foobar', $this->defaultHeaders['Authorization']);
21+
22+
$this->withToken('foobar', 'Basic');
23+
$this->assertSame('Basic foobar', $this->defaultHeaders['Authorization']);
2224
}
2325

2426
public function testWithoutAndWithMiddleware()

0 commit comments

Comments
 (0)