Пример #1
0
 public function test_get_group_count()
 {
     global $cache;
     $cache = new phpbb_mock_cache();
     $db = $this->new_dbal();
     $user = new \phpbb\user('\\phpbb\\datetime');
     $user->lang = array();
     $test_class = new \phpbb\groupposition\teampage($db, $user, $cache);
     $this->assertEquals(8, $test_class->get_group_count());
 }
Пример #2
0
 public function test_get_group_count()
 {
     global $cache, $phpbb_root_path, $phpEx;
     $cache = new phpbb_mock_cache();
     $db = $this->new_dbal();
     $lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
     $lang = new \phpbb\language\language($lang_loader);
     $user = new \phpbb\user($lang, '\\phpbb\\datetime');
     $user->lang = array();
     $test_class = new \phpbb\groupposition\teampage($db, $user, $cache);
     $this->assertEquals(8, $test_class->get_group_count());
 }