Skip to content

Commit

Permalink
Fix instantiation of ActiveSync object in Turba test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 21, 2016
1 parent 8f9643c commit e7d44c2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/Turba/Unit/Driver/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,16 @@ public function testNullSearch()

public function testDuplicateDetectionFromAsWithNoEmail()
{
$eas_obj = Horde_ActiveSync::messageFactory('Contact');
if (!class_exists('Horde_ActiveSync')){
$this->markTestSkipped('ActiveSync not installed.');
}
$state = $this->getMock('Horde_ActiveSync_State_Base', array(), array(), '', false);
$fixture = array(
'userAgent' => 'Apple-iPad3C6/1202.435',
'properties' => array(Horde_ActiveSync_Device::OS => 'iOS 8.1.1')
);
$device = new Horde_ActiveSync_Device($state, $fixture);
$eas_obj = new Horde_ActiveSync_Message_Contact(array('device' => $device, 'protocolversion' => Horde_ActiveSync::VERSION_FOURTEEN));
$eas_obj->firstname = 'Firstname';
$eas_obj->fileas = 'Firstname';
$eas_obj->homephonenumber = '+55555555';
Expand Down

0 comments on commit e7d44c2

Please sign in to comment.