Skip to content

Commit ba084ae

Browse files
committed
Fix transient tests
1 parent df632a4 commit ba084ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/Fragment/InlineFragmentRendererTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use Symfony\Component\HttpKernel\KernelEvents;
2424
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2525

26+
/**
27+
* @group time-sensitive
28+
*/
2629
class InlineFragmentRendererTest extends TestCase
2730
{
2831
public function testRender()
@@ -253,16 +256,15 @@ public function testIpAddressOfRangedTrustedProxyIsSetAsRemote()
253256
}
254257

255258
/**
256-
* Creates a Kernel expecting a request equals to $request
257-
* Allows delta in comparison in case REQUEST_TIME changed by 1 second.
259+
* Creates a Kernel expecting a request equals to $request.
258260
*/
259261
private function getKernelExpectingRequest(Request $request, $strict = false)
260262
{
261263
$kernel = $this->getMockBuilder(\Symfony\Component\HttpKernel\HttpKernelInterface::class)->getMock();
262264
$kernel
263265
->expects($this->once())
264266
->method('handle')
265-
->with($this->equalTo($request, 1))
267+
->with($request)
266268
->willReturn(new Response('foo'));
267269

268270
return $kernel;

0 commit comments

Comments
 (0)