phpbb_functional_test_case::get_quickmod_page PHP Method

get_quickmod_page() public method

Get quickmod page
public get_quickmod_page ( integer $topic_id, string $action, $crawler = false ) : Symfony\Component\DomCrawler\Crawler
$topic_id integer
$action string Language key for the quickmod action
return Symfony\Component\DomCrawler\Crawler
    public function get_quickmod_page($topic_id, $action, $crawler = false)
    {
        $this->add_lang('viewtopic');
        if ($crawler === false) {
            $crawler = self::request('GET', "viewtopic.php?t={$topic_id}&sid={$this->sid}");
        }
        $link = $crawler->filter('#quickmod')->selectLink($this->lang($action))->link()->getUri();
        return self::request('GET', substr($link, strpos($link, 'mcp.')));
    }