Skip to content

Commit 5f68ddc

Browse files
committed
Fix minor issues with tests
1 parent bcd3313 commit 5f68ddc

File tree

9 files changed

+65
-0
lines changed

9 files changed

+65
-0
lines changed

tests/core/core_auth_test.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
class core_auth_test extends core_base
1919
{
20+
protected $gallery_cache;
21+
protected $gallery_user;
22+
protected $gallery_auth;
23+
2024
public function setUp() : void
2125
{
2226
parent::setUp();

tests/core/core_base.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ static protected function setup_extensions()
2828
}
2929

3030
protected $db;
31+
protected $config;
32+
protected $dispatcher;
33+
protected $template;
34+
protected $language;
35+
protected $user;
36+
protected $auth;
37+
protected $controller_helper;
38+
protected $cache;
39+
protected $gallery_config;
40+
protected $pagination;
41+
protected $user_loader;
42+
protected $request;
43+
protected $user_cpf;
3144

3245
/**
3346
* Get data set fixtures

tests/core/core_block_test.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
class core_block_test extends core_base
1818
{
19+
/**
20+
* @var \phpbbgallery\core\block
21+
*/
22+
protected $gallery_block;
23+
1924
public function setUp() : void
2025
{
2126
parent::setUp();

tests/core/core_cache_test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
class core_cache_test extends core_base
1919
{
20+
/** @var \phpbbgallery\core\cache */
21+
protected $gallery_cache;
22+
2023
public function setUp() : void
2124
{
2225
parent::setUp();

tests/core/core_image_test.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717

1818
class core_image_test extends core_base
1919
{
20+
protected $gallery_cache;
21+
protected $gallery_user;
22+
protected $gallery_auth;
23+
protected $block;
24+
protected $album;
25+
protected $url;
26+
protected $log;
27+
protected $notification_helper;
28+
protected $report;
29+
protected $file;
30+
protected $contest;
31+
protected $image;
32+
2033
public function setUp() : void
2134
{
2235
parent::setUp();

tests/core/core_notification_test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
class core_notification_test extends core_base
1818
{
19+
/** @var \phpbbgallery\core\notification */
20+
protected $notification;
21+
1922
public function setUp() : void
2023
{
2124
parent::setUp();

tests/core/core_rating_test.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
class core_rating_test extends core_base
1919
{
20+
protected $gallery_cache;
21+
protected $gallery_user;
22+
protected $gallery_auth;
23+
protected $gallery_rating;
24+
2025
public function setUp() : void
2126
{
2227
parent::setUp();

tests/core/core_search_test.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@
1919

2020
class core_search_test extends core_base
2121
{
22+
protected $gallery_cache;
23+
protected $gallery_user;
24+
protected $gallery_auth;
25+
protected $block;
26+
protected $gallery_album;
27+
protected $url;
28+
protected $notification_helper;
29+
protected $log;
30+
protected $report;
31+
protected $file;
32+
protected $contest;
33+
protected $gallery_image;
34+
protected $gallery_search;
35+
2236
public function setUp() : void
2337
{
2438
parent::setUp();

tests/core/core_user_test.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
class core_user_test extends core_base
1919
{
20+
/**
21+
* @var \phpbbgallery\core\user
22+
*/
23+
protected $gallery_user;
24+
2025
public function setUp() : void
2126
{
2227
parent::setUp();

0 commit comments

Comments
 (0)