]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update ActivityCreationTests for our switch away from the obsolete <activity:actor>
authorBrion Vibber <brion@pobox.com>
Thu, 30 Dec 2010 21:21:59 +0000 (13:21 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 30 Dec 2010 21:21:59 +0000 (13:21 -0800)
tests/ActivityGenerationTests.php

index b9e74a570ae141f7b3337683223a2c8be449a556..8cf1b009ed6ed5379e98d68c6d0e50f5b6d20a52 100644 (file)
@@ -194,7 +194,7 @@ class ActivityGenerationTests extends PHPUnit_Framework_TestCase
         $actor  = ActivityUtils::child($element, 'actor', Activity::SPEC);
 
         $this->assertFalse(is_null($author));
-        $this->assertFalse(is_null($actor));
+        $this->assertTrue(is_null($actor)); // <activity:actor> is obsolete, no longer added
     }
 
     public function testAuthorContent()
@@ -213,6 +213,9 @@ class ActivityGenerationTests extends PHPUnit_Framework_TestCase
         $this->assertEquals($this->author1->uri, ActivityUtils::childContent($author, 'uri'));
     }
 
+    /**
+     * We no longer create <activity:actor> entries, they have merged to <atom:author>
+     */
     public function testActorContent()
     {
         $notice = $this->_fakeNotice();
@@ -225,8 +228,7 @@ class ActivityGenerationTests extends PHPUnit_Framework_TestCase
 
         $actor = ActivityUtils::child($element, 'actor', Activity::SPEC);
 
-        $this->assertEquals($this->author1->uri, ActivityUtils::childContent($actor, 'id'));
-        $this->assertEquals($this->author1->nickname, ActivityUtils::childContent($actor, 'title'));
+        $this->assertEquals($actor, null);
     }
 
     public function testReplyLink()