PHPUnit test failure AuthenticationCookieTest.php #12911

Closed
ibennetch opened this Issue Jan 21, 2017 · 1 comment

Projects

None yet

2 participants

@ibennetch
Contributor

With current master, I get this:

1) AuthenticationCookieTest::testAuthCaptcha
Failed asserting that '
    <div class="container">
    <a href="./url.php?url=https%3A%2F%2Fwww.phpmyadmin.net%2F" target="_blank" rel="noopener noreferrer" class="logo"><img name="imLogo" id="imLogo" src="testpma_logo.png" border="0" width="88" height="31" alt="phpMyAdmin" /></a>
       <h1>Welcome to <bdo dir="ltr" lang="en">phpMyAdmin</bdo></h1><noscript>
<div class="error"><img src="themes/dot.gif" title="" alt="" class="icon ic_s_error" /> Javascript must be enabled past this point!</div></noscript>
<div class='hide js-show'>

</div>
    <br />
    <!-- Login form -->
    <form method="post" action="index.php" name="login_form" autocomplete="off" class="disableAjax login hide js-show">
        <fieldset>
        <legend>Log in<a href="./url.php?url=https%3A%2F%2Fdocs.phpmyadmin.net%2Fen%2Flatest%2Findex.html" target="documentation"><img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" /></a></legend><d
iv class="item">
                <label for="input_username">Username:</label>
                <input type="text" name="pma_username" id="input_username" value="" size="24" class="textfield"/>
            </div>
            <div class="item">
                <label for="input_password">Password:</label>
                <input type="password" name="pma_password" id="input_password" value="" size="24" class="textfield" />
            </div>    <input type="hidden" name="server" value="0" /><script src="https://www.google.com/recaptcha/api.js?hl=en" async defer></script><div class="g-recaptcha" data-sitekey="testpubkey"></div></fieldset>
        <fieldset class="tblFooters">
            <input value="Go" type="submit" id="input_go" /><input type="hidden" name="target" value="phpunit" /><input type="hidden" name="db" value="db" /><input type="hidden" name="table" value="table" /><input type="hidden" name="lang
" value="en" /><input type="hidden" name="collation_connection" value="utf-8" /><input type="hidden" name="token" value="token" /></fieldset>
    </form></div><div id="pma_footer"><h2>This is my footer. 04:49:46</h2>
</div>' contains "<select name="lang" class="autosubmit" lang="en" dir="ltr" id="sel-lang">".

/var/www/pma-dev/fork/test/classes/plugin/auth/AuthenticationCookieTest.php:313
/usr/share/php/PHPUnit/TextUI/Command.php:186
/usr/share/php/PHPUnit/TextUI/Command.php:138
@nijel
Member
nijel commented Jan 21, 2017

You probably don't have generated mo files, but the test should properly detect it...

@nijel nijel added this to the 4.7.0 milestone Jan 21, 2017
@nijel nijel self-assigned this Jan 21, 2017
@nijel nijel added the bug label Jan 21, 2017
@nijel nijel added a commit that closed this issue Jan 21, 2017
@nijel nijel Assert for language selection only in case locales are available
Fixes #12911

Signed-off-by: Michal Čihař <michal@cihar.com>
d2ade81
@nijel nijel closed this in d2ade81 Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment