diff options
author | Andy Chase <asperous2@gmail.com> | 2013-07-05 13:49:03 -0700 |
---|---|---|
committer | Andy Chase <asperous2@gmail.com> | 2013-07-05 14:10:04 -0700 |
commit | 6f8187f7faadc543f3e43db278cd7239e8cf7ac7 (patch) | |
tree | 8af45c10d924c970f4fc14ab600e4f428ea8a9b7 /tests/session | |
parent | 521d35dd6eaf7a6cd8be1ebd8591e4b2b21fd99f (diff) | |
download | forums-6f8187f7faadc543f3e43db278cd7239e8cf7ac7.tar forums-6f8187f7faadc543f3e43db278cd7239e8cf7ac7.tar.gz forums-6f8187f7faadc543f3e43db278cd7239e8cf7ac7.tar.bz2 forums-6f8187f7faadc543f3e43db278cd7239e8cf7ac7.tar.xz forums-6f8187f7faadc543f3e43db278cd7239e8cf7ac7.zip |
[ticket/11620] Reworked create_test without data provider
PHPBB3-11620
Diffstat (limited to 'tests/session')
-rw-r--r-- | tests/session/create_test.php | 53 |
1 files changed, 11 insertions, 42 deletions
diff --git a/tests/session/create_test.php b/tests/session/create_test.php index 773b833cf8..9d77a26f17 100644 --- a/tests/session/create_test.php +++ b/tests/session/create_test.php @@ -37,50 +37,19 @@ class phpbb_session_create_test extends phpbb_database_test_case )); } - static function create_inputs() { - return array( - array( - false, - false, - false, - false, - array(), - 'user agent', - '127.0.0.1', - self::bot('user agent', 13, '127.0.0.1'), - '', - function ($test, $output) { - $test->assertEquals($output->data['is_bot'], true, "should be a bot"); - } - ) - ); - } - - /** @dataProvider create_inputs */ - function test_session_create ( - $user_id = false, - $set_admin = false, - $persist_login = false, - $viewonline = true, - array $config_overrides = array(), - $user_agent = "", - $ip_address = "", - array $bot_overrides = array(), - $uri_sid = "", - $test_function - ) + function test_bot_session () { $output = $this->session_facade->session_create( - $user_id, - $set_admin, - $persist_login, - $viewonline, - $config_overrides, - $user_agent, - $ip_address, - $bot_overrides, - $uri_sid + false, + false, + false, + false, + array(), + 'user agent', + '127.0.0.1', + self::bot('user agent', 13, '127.0.0.1'), + '' ); - $test_function($this, $output); + $this->assertEquals($output->data['is_bot'], true, "should be a bot"); } } |