MINOR Added test case for making up a fake MultiFormSessionID in the URL

This commit is contained in:
Sean Harvey 2009-08-05 10:31:47 +00:00
parent c2ba6d441f
commit b415cd5053

View File

@ -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 {