Exemplo n.º 1
0
 /**
  * @dataProvider get_group_value_data
  */
 public function test_get_group_value($group_id, $expected, $throws_exception)
 {
     global $cache;
     $cache = new phpbb_mock_cache();
     $db = $this->new_dbal();
     $user = new \phpbb\user('\\phpbb\\datetime');
     $user->lang = array();
     if ($throws_exception) {
         $this->setExpectedException($throws_exception);
     }
     $test_class = new \phpbb\groupposition\teampage($db, $user, $cache);
     $this->assertEquals($expected, $test_class->get_group_value($group_id));
 }