Fixed tests not calling parent::setUp()
This commit is contained in:
parent
fdfb4acbf9
commit
d44e9c9ac9
5 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -7,6 +7,7 @@ final class ValidatorTest extends \Szurubooru\Tests\AbstractTestCase
|
|||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->configMock = $this->mockConfig();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue