diff --git a/plugins/archiveorg/archiveorg.php b/plugins/archiveorg/archiveorg.php index 1db3e4cb..7d172584 100644 --- a/plugins/archiveorg/archiveorg.php +++ b/plugins/archiveorg/archiveorg.php @@ -1,12 +1,19 @@ $str, + 'links' => array( + array( + 'url' => $str, + ) + ) + ); + + $data = hook_archiveorg_render_linklist($data); + $link = $data['links'][0]; + // data shouldn't be altered + $this->assertEquals($str, $data['title']); + $this->assertEquals($str, $link['url']); + + // plugin data + $this->assertEquals(1, count($link['link_plugin'])); + $this->assertNotFalse(strpos($link['link_plugin'][0], $str)); + } +}