Kohana v3.3.5
This commit is contained in:
@@ -95,20 +95,14 @@ class Kohana_SessionTest extends Unittest_TestCase
|
||||
*/
|
||||
public function test_constructor_loads_session_with_session_id()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'Need to work out why constructor is not being called'
|
||||
);
|
||||
|
||||
$config = array();
|
||||
$session_id = 'lolums';
|
||||
|
||||
// Don't auto-call constructor, we need to setup the mock first
|
||||
$session = $this->getMockForAbstractClass(
|
||||
'Session',
|
||||
array(),
|
||||
'',
|
||||
FALSE
|
||||
);
|
||||
$session = $this->getMockBuilder('Session')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(array('read'))
|
||||
->getMockForAbstractClass();
|
||||
|
||||
$session
|
||||
->expects($this->once())
|
||||
|
Reference in New Issue
Block a user