mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
MINOR Added test case for making up a fake MultiFormSessionID in the URL
This commit is contained in:
parent
c2ba6d441f
commit
b415cd5053
@ -87,6 +87,14 @@ class MultiFormTest extends FunctionalTest {
|
||||
$this->assertFalse($this->form->getCurrentSession());
|
||||
}
|
||||
|
||||
function testIncorrectSessionIdentifier() {
|
||||
$this->form->setCurrentSessionHash('sdfsdf3432325325sfsdfdf'); // made up!
|
||||
$this->assertFalse($this->form->getCurrentSession());
|
||||
|
||||
// A new session is generated, even though we made up the identifier
|
||||
$this->assertType('MultiFormSession', $this->form->session);
|
||||
}
|
||||
|
||||
}
|
||||
class MultiFormTest_Controller extends Controller implements TestOnly {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user