public function setUp()
{
$this->setupMockServices();
$this->containerGuid = 42;
// mock \ElggObject that has a container guid
$object = $this->mocks()->getObject(['container_guid' => $this->containerGuid]);
// mock event that holds the mock object
$this->event = $this->getMock('\\Elgg\\Notifications\\Event', array('getObject'), array(), '', false);
$this->event->expects($this->any())->method('getObject')->will($this->returnValue($object));
$this->db = $this->getMock('\\Elgg\\Database', array('getData', 'prefix', 'sanitizeString'), array(), '', false);
$this->db->expects($this->any())->method('prefix')->will($this->returnValue('elgg_'));
$this->db->expects($this->any())->method('sanitizeString')->will($this->returnArgument(0));
}