- $this->assertTrue(in_array($this->targetGroup1->uri, $hrefs));
- $this->assertTrue(in_array($this->targetGroup2->uri, $hrefs));
+ $this->assertTrue(in_array($this->targetGroup1->getUri(), $hrefs));
+ $this->assertTrue(in_array($this->targetGroup2->getUri(), $hrefs));
+
+ $links = ActivityUtils::getLinks($element, 'mentioned');
+
+ $this->assertEquals(2, count($links));
+
+ $hrefs = array();
+
+ foreach ($links as $link) {
+ $hrefs[] = $link->getAttribute('href');
+ }
+
+ $this->assertTrue(in_array($this->targetGroup1->getUri(), $hrefs));
+ $this->assertTrue(in_array($this->targetGroup2->getUri(), $hrefs));