summaryrefslogtreecommitdiff
path: root/tests/Unit/Middleware/RouteDispatcherTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-12-28 03:28:33 +0100
committermsquare <msquare@notrademark.de>2018-12-28 20:35:44 +0100
commit491ee376517cded3c9c8d2389e3f9f21daa1a407 (patch)
tree7def296bc1e53691bb7d5b79c542e002c009ed24 /tests/Unit/Middleware/RouteDispatcherTest.php
parent7b3901211a0165558eebca8fe7490ca79b09f97b (diff)
Don't save sessions permanently on api and metrics paths
closes #530 (Session on API calls)
Diffstat (limited to 'tests/Unit/Middleware/RouteDispatcherTest.php')
-rw-r--r--tests/Unit/Middleware/RouteDispatcherTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Unit/Middleware/RouteDispatcherTest.php b/tests/Unit/Middleware/RouteDispatcherTest.php
index 611d3b7c..d6ed3408 100644
--- a/tests/Unit/Middleware/RouteDispatcherTest.php
+++ b/tests/Unit/Middleware/RouteDispatcherTest.php
@@ -32,10 +32,11 @@ class RouteDispatcherTest extends TestCase
->with('HEAD', '/foo!bar')
->willReturn([FastRouteDispatcher::FOUND, $handler, ['foo' => 'bar', 'lorem' => 'ipsum']]);
- $request->expects($this->exactly(3))
+ $request->expects($this->exactly(4))
->method('withAttribute')
->withConsecutive(
['route-request-handler', $handler],
+ ['route-request-path', '/foo!bar'],
['foo', 'bar'],
['lorem', 'ipsum']
)