diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-10-30 20:52:14 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-11-01 21:54:34 +0100 |
commit | 8aec6b58e087fa86c71baaccbeb07fe7a495aee5 (patch) | |
tree | b8b1abaa08dc33f8d48260490c879f61bc5fd472 | |
parent | d9c868d0f5f9c2c097e3fded0ac6882c2f2ff988 (diff) | |
download | forums-8aec6b58e087fa86c71baaccbeb07fe7a495aee5.tar forums-8aec6b58e087fa86c71baaccbeb07fe7a495aee5.tar.gz forums-8aec6b58e087fa86c71baaccbeb07fe7a495aee5.tar.bz2 forums-8aec6b58e087fa86c71baaccbeb07fe7a495aee5.tar.xz forums-8aec6b58e087fa86c71baaccbeb07fe7a495aee5.zip |
[ticket/13248] Use functional framework login method in tests
PHPBB3-13248
-rw-r--r-- | tests/functional/auth_test.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/functional/auth_test.php b/tests/functional/auth_test.php index 1794afd009..76e1709afb 100644 --- a/tests/functional/auth_test.php +++ b/tests/functional/auth_test.php @@ -43,14 +43,9 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case $db = $this->get_db(); $sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = 'foobar' WHERE config_name = 'auth_method'"; $db->sql_query($sql); - $crawler = self::request('GET', 'ucp.php?mode=login'); - $form = $crawler->selectButton('Login')->form(); - $form->setValues(array( - 'username' => 'anothertestuser', - 'password' => str_repeat('anothertestuser', 2), - )); $config['auth_method'] = 'foobar'; - $crawler = self::submit($form); + $this->login('anothertestuser'); + $crawler = self::request('GET', 'index.php'); $this->assertContains('anothertestuser', $crawler->filter('#username_logged_in')->text()); $sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = 'db' WHERE config_name = 'auth_method'"; $db->sql_query($sql); |