/** * @covers WPSEO_Frontend::embed_rssfooter */ public function test_embed_rssfooter() { $input = 'Some content'; // go to home (non-feed) $this->go_to_home(); // test if input was unchanged $expected = $input; $this->assertEquals($expected, self::$class_instance->embed_rssfooter($input)); // go to feed $this->go_to(get_bloginfo('rss2_url')); // test if input was changed $expected = self::$class_instance->embed_rss($input, 'full'); $this->assertEquals($expected, self::$class_instance->embed_rssfooter($input)); }