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D`ڠQ#fea F=$fwe͒K=װ冄xM΀zC}rPkSs`uT,:XIlZ>m"t41ѱKc?}ΩK0y,CKx"mnʦUNx}[ e,C0>*o	C9cT]?>Е->$
]Ar{E&ż`_۠:V,{azb^MW;d7aSQJ&yFnR#.Ui[fﬂU&&y:~/dDniClϘڹI'qG5|'e~,#An+=T7*3s{}TP;Fn䱮C^#1:1 ֑FGf/2E-eϼjVKԴM5F/\hQD,ḨU*yna"80ITW.vJbǵT<:6QNM$lhO[,l+RP/
zJS-@'EW8ˮ(-cx8@/(S{؎>rqŅr[|A>R+b X\#DIU7^b/VΑFB[:\C\$;$lTE񦐤5U^~SJ*gK֯wx?a@-}%N'sAOȚ:31x]wV0ݝ>@V N}Y*)y[ЊM#(ǯE QDwze@Ça-2KOxGۃc=#QL)341XN,5g?roR}yGt# ()p&CHnKtܯՆy/"Dit|#Am5Cu6
yPx-kp݈zVH2U{.<fI:"i),[10_p3ϼd">W/{ShO=c%nʬ;DqTlL[:)t{ׅ8#%8C]bdѱw受BH +-G0tgm˺^ވf_ƗD
 9ZV3\6ws2}f*5gw%&6߾CjCqw?+u3>p`*RC/v$8Cx-ۇFN7O'd2݅=8-fX> ]j׋ա"lo(qAC%oс-{:ٱLvG><mSR%eH^\[%DМD@Ȗm2j/(S{V$4Sɿf"ra1<e%jn!	B
QҎH`vZ;/] J&8(DCTbVvqf&kއ5kOPx"pH?Sw/+2͕8$襉Oy7mG*0dY6Kxk#۾V`f췕~M {BԄsxha͐[۹|_WwGjl:~r$ep \.o/#Zvzu|ʹs`rnu	Lh,CtyT9-(6-z֬fg']['ServerDefault'] = 1;

        $this->assertEquals(
            '<div id="selflink" class="print_ignore"><a href="index.php?db=&amp;'
            . 'table=&amp;server=1&amp;target=&amp;lang=en&amp;collation_connection='
            . 'utf8_general_ci&amp;token=token" title="Open new phpMyAdmin window" '
            . 'target="_blank" rel="noopener noreferrer">Open new phpMyAdmin window</a></div>',
            $this->_callPrivateFunction(
                '_getSelfLink',
                array(
                    $this->object->getSelfUrl()
                )
            )
        );
    }

    /**
     * Test for _getSelfLink
     *
     * @return void
     */
    public function testGetSelfLinkWithImage()
    {

        $GLOBALS['cfg']['TabsMode'] = 'icons';
        $GLOBALS['cfg']['ServerDefault'] = 1;
        $_SESSION['PMA_Theme'] = new Theme();
        $GLOBALS['pmaThemeImage'] = 'image';

        $this->assertEquals(
            '<div id="selflink" class="print_ignore"><a href="index.php?db=&amp;'
            . 'table=&amp;server=1&amp;target=&amp;lang=en&amp;collation_connection='
            . 'utf8_general_ci&amp;token=token" title="Open new phpMyAdmin window" '
            . 'target="_blank" rel="noopener noreferrer"><img src="imagewindow-new.png" title="Open new '
            . 'phpMyAdmin window" alt="Open new phpMyAdmin window" /></a></div>',
            $this->_callPrivateFunction(
                '_getSelfLink',
                array(
                    $this->object->getSelfUrl()
                )
            )
        );
    }

    /**
     * Test for disable
     *
     * @return void
     */
    public function testDisable()
    {
        $footer = new PMA\libraries\Footer();
        $footer->disable();
        $this->assertEquals(
            '',
            $footer->getDisplay()
        );
    }

    /**
     * Test for footer when ajax enabled
     *
     * @return void
     */
    public function testAjax()
    {
        $footer = new PMA\libraries\Footer();
        $footer->setAjax(true);
        $this->assertEquals(
            '',
            $footer->getDisplay()
        );
    }

    /**
     * Test for footer get Scripts
     *
     * @return void
     */
    public function testGetScripts()
    {
        $footer = new PMA\libraries\Footer();
        $this->assertContains(
            '<script data-cfasync="false" type="text/javascript">',
            $footer->getScripts()->getDisplay()
        );
    }

    /**
     * Test for displaying footer
     *
     * @return void
     * @group medium
     */
    public function testDisplay()
    {
        $footer = new PMA\libraries\Footer();
        $this->assertContains(
            'Open new phpMyAdmin window',
            $footer->getDisplay()
        );
    }

    /**
     * Test for minimal footer
     *
     * @return void
     */
    public function testMinimal()
    {
        $footer = new PMA\libraries\Footer();
        $footer->setMinimal();
        $this->assertEquals(
            '</div></body></html>',
            $footer->getDisplay()
        );
    }
}
