From d44e9c9ac9b93c4207d349e5619acb74fd29fd5e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 10 Sep 2014 17:42:28 +0200 Subject: [PATCH] Fixed tests not calling parent::setUp() --- tests/DispatcherTest.php | 1 + tests/Services/AuthServiceTest.php | 1 + tests/Services/PrivilegeServiceTest.php | 1 + tests/Services/UserServiceTest.php | 1 + tests/ValidatorTest.php | 1 + 5 files changed, 5 insertions(+) diff --git a/tests/DispatcherTest.php b/tests/DispatcherTest.php index 0331282f..621d84c8 100644 --- a/tests/DispatcherTest.php +++ b/tests/DispatcherTest.php @@ -11,6 +11,7 @@ final class DispatcherTest extends \Szurubooru\Tests\AbstractTestCase public function setUp() { + parent::setUp(); $this->routerMock = $this->mock(\Szurubooru\Router::class); $this->httpHelperMock = $this->mock(\Szurubooru\Helpers\HttpHelper::class); $this->authServiceMock = $this->mock(\Szurubooru\Services\AuthService::class); diff --git a/tests/Services/AuthServiceTest.php b/tests/Services/AuthServiceTest.php index 685ae1e6..b0b605bf 100644 --- a/tests/Services/AuthServiceTest.php +++ b/tests/Services/AuthServiceTest.php @@ -11,6 +11,7 @@ class AuthServiceTest extends \Szurubooru\Tests\AbstractTestCase public function setUp() { + parent::setUp(); $this->configMock = $this->mockConfig(); $this->passwordServiceMock = $this->mock(\Szurubooru\Services\PasswordService::class); $this->timeServiceMock = $this->mock(\Szurubooru\Services\TimeService::class); diff --git a/tests/Services/PrivilegeServiceTest.php b/tests/Services/PrivilegeServiceTest.php index 2c60bb2f..36fa95c3 100644 --- a/tests/Services/PrivilegeServiceTest.php +++ b/tests/Services/PrivilegeServiceTest.php @@ -8,6 +8,7 @@ class PrivilegeServiceTest extends \Szurubooru\Tests\AbstractTestCase public function setUp() { + parent::setUp(); $this->configMock = $this->mockConfig(); $this->authServiceMock = $this->mock(\Szurubooru\Services\AuthService::class); } diff --git a/tests/Services/UserServiceTest.php b/tests/Services/UserServiceTest.php index c617288d..978a0ebf 100644 --- a/tests/Services/UserServiceTest.php +++ b/tests/Services/UserServiceTest.php @@ -16,6 +16,7 @@ final class UserServiceTest extends \Szurubooru\Tests\AbstractTestCase public function setUp() { + parent::setUp(); $this->configMock = $this->mockConfig(); $this->validatorMock = $this->mock(\Szurubooru\Validator::class); $this->userDaoMock = $this->mock(\Szurubooru\Dao\UserDao::class); diff --git a/tests/ValidatorTest.php b/tests/ValidatorTest.php index 825cea82..d9ced6bd 100644 --- a/tests/ValidatorTest.php +++ b/tests/ValidatorTest.php @@ -7,6 +7,7 @@ final class ValidatorTest extends \Szurubooru\Tests\AbstractTestCase public function setUp() { + parent::setUp(); $this->configMock = $this->mockConfig(); }