Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     global $table_prefix;
     $table_prefix = 'phpbb_';
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
     // Let's build auth class
     $this->gallery_auth = new \phpbbgallery\core\auth\auth($this->gallery_cache, $this->db, $this->gallery_user, $this->user, $this->auth, 'phpbb_gallery_permissions', 'phpbb_gallery_roles', 'phpbb_gallery_users', 'phpbb_gallery_albums');
     $this->misc = $this->getMockBuilder('\\phpbbgallery\\core\\misc')->disableOriginalConstructor()->getMock();
     $this->display = new \phpbbgallery\core\album\display($this->auth, $this->config, $this->controller_helper, $this->db, $this->pagination, $this->request, $this->template, $this->user, $this->gallery_auth, $this->gallery_user, $this->misc, '/', 'php', 'phpbb_gallery_albums', 'phpbb_gallery_contests', 'phpbb_gallery_albums_track', 'phpbb_gallery_albums_modscache');
 }
Esempio n. 3
0
 public function setUp()
 {
     parent::setUp();
     global $table_prefix;
     $table_prefix = 'phpbb_';
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
     // Let's build auth class
     $this->gallery_auth = new \phpbbgallery\core\auth\auth($this->gallery_cache, $this->db, $this->gallery_user, $this->user, $this->auth, 'phpbb_gallery_permissions', 'phpbb_gallery_roles', 'phpbb_gallery_users', 'phpbb_gallery_albums');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gallery_config = new \phpbbgallery\core\config($this->config);
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
     // Let's build auth class
     $this->gallery_auth = new \phpbbgallery\core\auth\auth($this->gallery_cache, $this->db, $this->gallery_user, $this->user, $this->auth, 'phpbb_gallery_permissions', 'phpbb_gallery_roles', 'phpbb_gallery_users', 'phpbb_gallery_albums');
     $this->gallery_album = new \phpbbgallery\core\album\album($this->db, $this->user, 'phpbb_gallery_albums', 'phpbb_gallery_watch', 'phpbb_gallery_contests');
     $this->gallery_image = $this->getMockBuilder('\\phpbbgallery\\core\\image\\image')->disableOriginalConstructor()->getMock();
     $this->gallery_image->method('get_status_orphan')->willReturn(3);
     // Let's build Search
     $this->gallery_search = new \phpbbgallery\core\search($this->db, $this->template, $this->user, $this->controller_helper, $this->gallery_config, $this->gallery_auth, $this->gallery_album, $this->gallery_image, $this->pagination, $this->user_loader, 'phpbb_gallery_images', 'phpbb_gallery_albums', 'phpbb_gallery_comments');
 }
 public function setUp()
 {
     parent::setUp();
     $this->album = new \phpbbgallery\core\album\album($this->db, $this->user, 'phpbb_gallery_albums', 'phpbb_gallery_watch', 'phpbb_gallery_contests');
 }
Esempio n. 6
0
 public function setUp()
 {
     parent::setUp();
     $this->gallery_config = new \phpbbgallery\core\config($this->config);
 }
Esempio n. 7
0
 public function setUp()
 {
     parent::setUp();
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
 }