Skip to content

Commit 908e33c

Browse files
authored
Allow Http requests to be recorded without requests being faked (#54850)
* Allow Http requests to be recorded without requests being faked * Add `record` to docblock
1 parent 5d477f9 commit 908e33c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Illuminate/Http/Client/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public function allowStrayRequests()
322322
*
323323
* @return $this
324324
*/
325-
protected function record()
325+
public function record()
326326
{
327327
$this->recording = true;
328328

src/Illuminate/Support/Facades/Http.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @method static \Illuminate\Http\Client\ResponseSequence sequence(array $responses = [])
1515
* @method static bool preventingStrayRequests()
1616
* @method static \Illuminate\Http\Client\Factory allowStrayRequests()
17+
* @method static \Illuminate\Http\Client\Factory record()
1718
* @method static void recordRequestResponsePair(\Illuminate\Http\Client\Request $request, \Illuminate\Http\Client\Response|null $response)
1819
* @method static void assertSent(callable $callback)
1920
* @method static void assertSentInOrder(array $callbacks)

0 commit comments

Comments
 (0)