public function testget_freebusy_lines_cache() { $vcal = new vCal(); $user_bean = new User('1'); $expectedStart = "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//SugarCRM//SugarCRM Calendar//EN\r\nBEGIN:VFREEBUSY\r\nORGANIZER;CN= :VFREEBUSY\r\n"; $expectedEnd = "END:VFREEBUSY\r\nEND:VCALENDAR\r\n"; $result = $vcal->get_freebusy_lines_cache($user_bean); $this->assertStringStartsWith($expectedStart, $result); $this->assertStringEndsWith($expectedEnd, $result); }