Skip to content

Commit c5be30d

Browse files
nickvergessenblizzz
authored andcommitted
Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 87ab9cf commit c5be30d

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
- cd tests/unit/
4747
- phpunit --configuration phpunit.xml
4848
- name: php7.3
49-
image: nextcloudci/php7.3:php7.3-1
49+
image: nextcloudci/php7.3:php7.3-5
5050
environment:
5151
APP_NAME: user_saml
5252
CORE_BRANCH: master

tests/unit/AppInfo/ApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ApplicationTest extends \Test\TestCase {
3434
/** @var \OCP\AppFramework\IAppContainer */
3535
protected $container;
3636

37-
protected function setUp() {
37+
protected function setUp(): void {
3838
parent::setUp();
3939
$this->app = new Application();
4040
$this->container = $this->app->getContainer();

tests/unit/Controller/SAMLControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SAMLControllerTest extends TestCase {
6161
/** @var SAMLController */
6262
private $samlController;
6363

64-
public function setUp() {
64+
protected function setUp(): void {
6565
parent::setUp();
6666

6767
$this->request = $this->createMock(IRequest::class);

tests/unit/Middleware/OnlyLoggedInMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class OnlyLoggedInMiddlewareTest extends \Test\TestCase {
3535
/** @var OnlyLoggedInMiddleware */
3636
private $onlyLoggedInMiddleware;
3737

38-
public function setUp() {
38+
protected function setUp(): void {
3939
$this->reflector = $this->createMock(IControllerMethodReflector::class);
4040
$this->userSession = $this->createMock(IUserSession::class);
4141
$this->onlyLoggedInMiddleware = new OnlyLoggedInMiddleware(

tests/unit/Settings/AdminTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AdminTest extends \Test\TestCase {
3737
/** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
3838
private $config;
3939

40-
public function setUp() {
40+
protected function setUp(): void {
4141
$this->l10n = $this->createMock(IL10N::class);
4242
$this->defaults = $this->createMock(Defaults::class);
4343
$this->config = $this->createMock(IConfig::class);

tests/unit/Settings/SectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SectionTest extends \Test\TestCase {
3232
/** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
3333
private $urlGenerator;
3434

35-
public function setUp() {
35+
protected function setUp(): void {
3636
$this->l10n = $this->createMock(\OCP\IL10N::class);
3737
$this->urlGenerator = $this->createMock(IURLGenerator::class);
3838
$this->section = new \OCA\User_SAML\Settings\Section(

tests/unit/UserBackendTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class UserBackendTest extends TestCase {
5454
/** @var \PHPUnit_Framework_MockObject_MockObject|ILogger */
5555
private $logger;
5656

57-
public function setUp() {
57+
protected function setUp(): void {
5858
parent::setUp();
5959

6060
$this->config = $this->createMock(IConfig::class);

0 commit comments

Comments
 (0)