Skip to content

Commit

Permalink
Fix test, must map the supported email addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 6, 2016
1 parent c8dd4c0 commit c8cc256
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion turba/test/Turba/Unit/ImportTest.php
Expand Up @@ -17,6 +17,11 @@ class Turba_Unit_ImportTest extends Turba_TestCase
)
);

protected static $emailMap = array(
'homeEmail' => 'object_homeemail',
'workEmail' => 'object_workemail'
);

public static function setUpBeforeClass()
{
self::createBasicTurbaSetup(new Horde_Test_Setup());
Expand Down Expand Up @@ -528,7 +533,7 @@ public function testImportInvalidBinaryEncoding()
END:VCARD
';

$hash = $this->toHash($vcard);
$hash = $this->toHash($vcard, self::$emailMap);
$this->assertEquals(136, strlen($hash['photo']));

unset($hash['photo']);
Expand Down

0 comments on commit c8cc256

Please sign in to comment.