summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-25 19:17:50 -0800
committerZach Copley <zach@status.net>2010-02-25 19:17:50 -0800
commit8274bbedcf1d8b08682c6f2ee96cc0f6a3c7e293 (patch)
tree906d3b83f53070bb1937ad063fa4c292045636d7
parentcf61f36e6b313659b3c3fb253972d06c7113f1e8 (diff)
Fix test to account for new way avatars are stored in ActivityObject
-rw-r--r--tests/ActivityParseTests.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/ActivityParseTests.php b/tests/ActivityParseTests.php
index d1d871734..7bf9cec7c 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;