_post = $post; } /** * Fake get_canonical_url method. * @return string Returns a url for testing. */ public function get_canonical_url() { $url = get_permalink( $this->_post ); return $url; } /** * Hook the is_active_sidebar filter to always return true. * * @wp-hook is_active_sidebar * @return Returns true. */ static function fake_is_active_sidebar() { return true; } }