From: Zach Copley Date: Fri, 26 Feb 2010 03:17:50 +0000 (-0800) Subject: Fix test to account for new way avatars are stored in ActivityObject X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8274bbedcf1d8b08682c6f2ee96cc0f6a3c7e293;p=quix0rs-gnu-social.git Fix test to account for new way avatars are stored in ActivityObject --- diff --git a/tests/ActivityParseTests.php b/tests/ActivityParseTests.php index d1d8717343..7bf9cec7c4 100644 --- a/tests/ActivityParseTests.php +++ b/tests/ActivityParseTests.php @@ -121,10 +121,14 @@ class ActivityParseTests extends PHPUnit_Framework_TestCase $this->assertEquals($act->actor->title, 'Test User'); $this->assertEquals($act->actor->id, 'http://example.net/mysite/user/3'); $this->assertEquals($act->actor->link, 'http://example.net/mysite/testuser'); + + $avatars = $act->actor->avatarLinks; + $this->assertEquals( - $act->actor->avatar, - 'http://example.net/mysite/avatar/3-96-20100224004207.jpeg' + $avatars[0]->url, + 'http://example.net/mysite/avatar/3-96-20100224004207.jpeg' ); + $this->assertEquals($act->actor->displayName, 'Test User'); $poco = $act->actor->poco;