Skip to content

Commit

Permalink
#46 - verifying that the added session cookie always has a / path b…
Browse files Browse the repository at this point in the history
…y default
  • Loading branch information
Ocramius committed May 29, 2016
1 parent 738e776 commit d45e078
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/PSR7SessionTest/Http/SessionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,23 @@ public function validMiddlewaresProvider()
];
}

/**
* @group #46
*/
public function testFromSymmetricKeyDefaultsWillHaveADefaultSessionPath()
{
self::assertSame(
'/',
$this
->getCookie(
SessionMiddleware::fromSymmetricKeyDefaults('not relevant', 100)
->__invoke(new ServerRequest(), new Response(), $this->writingMiddleware())
)
->getPath()
);
}


/**
* @param SessionMiddleware $middleware
* @param ServerRequestInterface $request
Expand Down

0 comments on commit d45e078

Please sign in to comment.