]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix test to account for new way avatars are stored in ActivityObject
authorZach Copley <zach@status.net>
Fri, 26 Feb 2010 03:17:50 +0000 (19:17 -0800)
committerZach Copley <zach@status.net>
Fri, 26 Feb 2010 03:17:50 +0000 (19:17 -0800)
tests/ActivityParseTests.php

index d1d8717343576a9b2c6272f1d426b4415a95c332..7bf9cec7c453d57e048b15ec2671ba31c602faf2 100644 (file)
@@ -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;