/** * @covers WPSEO_Frontend::embed_rssfooter_excerpt */ public function test_embed_rssfooter_excerpt() { $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_excerpt($input)); // go to feed $this->go_to(get_bloginfo('rss2_url')); // test if input was changed $expected = self::$class_instance->embed_rss($input, 'excerpt'); $this->assertEquals($expected, self::$class_instance->embed_rssfooter_excerpt($input)); }