We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151cd17 commit bf0835cCopy full SHA for bf0835c
tests/Foundation/Testing/Concerns/MakesHttpRequestsTest.php
@@ -14,11 +14,13 @@ public function testFromSetsHeaderAndSession()
14
$this->assertSame('previous/url', $this->app['session']->previousUrl());
15
}
16
17
- public function testBearerTokenSetsHeader()
+ public function testWithTokenSetsAuthorizationHeader()
18
{
19
- $this->withBearerToken('foobar');
20
-
+ $this->withToken('foobar');
21
$this->assertSame('Bearer foobar', $this->defaultHeaders['Authorization']);
+
22
+ $this->withToken('foobar', 'Basic');
23
+ $this->assertSame('Basic foobar', $this->defaultHeaders['Authorization']);
24
25
26
public function testWithoutAndWithMiddleware()
0 commit comments