public function test_unique_link() { $link = get_post_permalink($this->_post_id); $name = 'sharedate_0_' . $this->_post_id . '_tw'; $unique_link = ppp_generate_unique_link($link, $this->_post_id, $name); $this->assertEquals('http://example.org/?post_type=post&p=' . $this->_post_id . '&ppp=' . $this->_post_id . '-0', $unique_link); }
public function test_unique_link_genreation() { $link = ppp_generate_unique_link(get_permalink($this->_post_id), $this->_post_id, 'sharedate_1_' . $this->_post_id . '_tw'); $this->assertEquals('http://example.org/?p=' . $this->_post_id . '&ppp=' . $this->_post_id . '-1', $link); }