Skip to content

Commit

Permalink
Must set a mock backend object here as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 15, 2014
1 parent cd5df36 commit 0a2e409
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -223,7 +223,11 @@ public function setUp()
{
if (!self::$db) {
$this->markTestSkipped(self::$reason);
return;
}
self::$state = new Horde_ActiveSync_State_Sql(array('db' => self::$db));
$backend = $this->getMockSkipConstructor('Horde_ActiveSync_Driver_Base');
$backend->expects($this->any())->method('getUser')->will($this->returnValue('mike'));
self::$state->setBackend($backend);
}
}

0 comments on commit 0a2e409

Please sign in to comment.