8000 Remove flag and adds test that checks value passed to the method with… · laravel/framework@fcf92ae · GitHub
[go: up one dir, main page]

Skip to content

Commit fcf92ae

Browse files
committed
Remove flag and adds test that checks value passed to the method withInput.
1 parent d7af950 commit fcf92ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Foundation/FoundationExceptionsHandlerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use RuntimeException;
99
use Psr\Log\LoggerInterface;
1010
use PHPUnit\Framework\TestCase;
11-
use Illuminate\Support\MessageBag;
1211
use Illuminate\Routing\Redirector;
12+
use Illuminate\Support\MessageBag;
1313
use Illuminate\Container\Container;
1414
use Illuminate\Validation\Validator;
1515
use Illuminate\Http\RedirectResponse;
@@ -141,14 +141,15 @@ public function testValidateFileMethod()
141141
$argumentExpected = ['input' => 'My input value'];
142142
$argumentActual = null;
143143

144-
$this->container->singleton('redirect', function () use ($argumentExpected, &$argumentActual) {
144+
$this->container->singleton('redirect', function () use ($argumentExpected, &$argumentActual) {
145145
$redirector = m::mock(Redirector::class);
146146

147147
$redirector->shouldReceive('to')->once()
148148
->andReturn($responser = m::mock(RedirectResponse::class));
149149

150150
$responser->shouldReceive('withInput')->once()->with(m::on(function ($argument) use ($argumentExpected, &$argumentActual) {
151151
$argumentActual = $argument;
152+
152153
return true;
153154
}))->andReturn($responser);
154155

0 commit comments

Comments
 (0)
0