Browse Source

Update master php testing versions

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/2505/head
Joas Schilling 6 years ago
parent
commit
80357681e6
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 88
      .drone.yml
  2. 2
      tests/php/Activity/Provider/BaseTest.php
  3. 2
      tests/php/Activity/Provider/InvitationTest.php
  4. 2
      tests/php/CapabilitiesTest.php
  5. 2
      tests/php/Chat/AutoComplete/SearchPluginTest.php
  6. 2
      tests/php/Chat/AutoComplete/SorterTest.php
  7. 2
      tests/php/Chat/ChatManagerTest.php
  8. 2
      tests/php/Chat/Command/ExecutorTest.php
  9. 2
      tests/php/Chat/NotifierTest.php
  10. 2
      tests/php/Chat/Parser/SystemMessageTest.php
  11. 2
      tests/php/Chat/Parser/UserMentionTest.php
  12. 2
      tests/php/Collaboration/Collaborators/RoomPluginTest.php
  13. 2
      tests/php/Collaboration/Resources/ConversationProviderTest.php
  14. 2
      tests/php/Command/Signaling/AddTest.php
  15. 2
      tests/php/Command/Signaling/DeleteTest.php
  16. 2
      tests/php/Command/Signaling/ListCommandTest.php
  17. 2
      tests/php/Command/Stun/AddTest.php
  18. 2
      tests/php/Command/Stun/DeleteTest.php
  19. 2
      tests/php/Command/Stun/ListCommandTest.php
  20. 2
      tests/php/Command/Turn/AddTest.php
  21. 2
      tests/php/Command/Turn/DeleteTest.php
  22. 2
      tests/php/Command/Turn/ListCommandTest.php
  23. 2
      tests/php/Controller/ChatControllerTest.php
  24. 2
      tests/php/Controller/RoomControllerTest.php
  25. 2
      tests/php/Controller/SignalingControllerTest.php
  26. 2
      tests/php/Notification/NotifierTest.php
  27. 2
      tests/php/Settings/Admin/SectionTest.php
  28. 2
      tests/php/Settings/Admin/StunServerTest.php
  29. 2
      tests/php/Settings/Admin/TurnServerTest.php
  30. 4
      tests/php/Signaling/BackendNotifierTest.php
  31. 2
      tests/php/TalkSessionTest.php

88
.drone.yml

@ -63,8 +63,8 @@ kind: pipeline
name: compatibility
steps:
- name: syntax-php7.1
image: nextcloudci/php7.1:php7.1-16
- name: syntax-php7.2
image: nextcloudci/php7.2:php7.2-13
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -75,8 +75,8 @@ steps:
- cd ../server
- composer install
- ./lib/composer/bin/parallel-lint apps/$APP_NAME/
- name: syntax-php7.3
image: nextcloudci/php7.3:php7.3-1
- name: syntax-php7.4
image: nextcloudci/php7.4:php7.4-2
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -88,7 +88,7 @@ steps:
- composer install
- ./lib/composer/bin/parallel-lint apps/$APP_NAME/
- name: app-code-check
image: nextcloudci/php7.3:php7.3-1
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -110,11 +110,11 @@ trigger:
---
kind: pipeline
name: unit-sqlite-php7.1
name: unit-sqlite-php7.2
steps:
- name: sqlite-php7.1
image: nextcloudci/php7.1:php7.1-16
- name: sqlite-php7.2
image: nextcloudci/php7.2:php7.2-13
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -141,11 +141,11 @@ trigger:
---
kind: pipeline
name: unit-sqlite-php7.2
name: unit-sqlite-php7.3
steps:
- name: sqlite-php7.2
image: nextcloudci/php7.2:php7.2-12
- name: sqlite-php7.3
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -172,11 +172,11 @@ trigger:
---
kind: pipeline
name: unit-sqlite-php7.3
name: unit-sqlite-php7.4
steps:
- name: sqlite-php7.3
image: nextcloudci/php7.3:php7.3-1
- name: sqlite-php7.4
image: nextcloudci/php7.4:php7.4-2
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -203,11 +203,11 @@ trigger:
---
kind: pipeline
name: unit-mysql-php7.1
name: unit-mysql-php7.2
steps:
- name: mysql-php7.1
image: nextcloudci/php7.1:php7.1-16
- name: mysql-php7.2
image: nextcloudci/php7.2:php7.2-13
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -248,11 +248,11 @@ trigger:
---
kind: pipeline
name: unit-mysql-php7.2
name: unit-mysql-php7.3
steps:
- name: mysql-php7.2
image: nextcloudci/php7.2:php7.2-12
- name: mysql-php7.3
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -293,11 +293,11 @@ trigger:
---
kind: pipeline
name: unit-mysql-php7.3
name: unit-mysql-php7.4
steps:
- name: mysql-php7.3
image: nextcloudci/php7.3:php7.3-1
- name: mysql-php7.4
image: nextcloudci/php7.4:php7.4-2
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -338,11 +338,11 @@ trigger:
---
kind: pipeline
name: unit-pgsql-php7.1
name: unit-pgsql-php7.2
steps:
- name: pgsql-php7.1
image: nextcloudci/php7.1:php7.1-16
- name: pgsql-php7.2
image: nextcloudci/php7.2:php7.2-13
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -381,11 +381,11 @@ trigger:
---
kind: pipeline
name: unit-pgsql-php7.2
name: unit-pgsql-php7.3
steps:
- name: pgsql-php7.2
image: nextcloudci/php7.2:php7.2-12
- name: pgsql-php7.3
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -424,11 +424,11 @@ trigger:
---
kind: pipeline
name: unit-pgsql-php7.3
name: unit-pgsql-php7.4
steps:
- name: pgsql-php7.3
image: nextcloudci/php7.3:php7.3-1
- name: pgsql-php7.4
image: nextcloudci/php7.4:php7.4-2
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -471,7 +471,7 @@ name: int-sqlite-callapi
steps:
- name: integration-callapi
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -506,7 +506,7 @@ name: int-sqlite-chat
steps:
- name: integration-chat
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -541,7 +541,7 @@ name: int-sqlite-conversation
steps:
- name: integration-conversation
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -576,7 +576,7 @@ name: int-sqlite-sharing
steps:
- name: integration-sharing
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -611,7 +611,7 @@ name: int-mysql-callapi
steps:
- name: integration-callapi
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -656,7 +656,7 @@ name: int-mysql-chat
steps:
- name: integration-chat
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -701,7 +701,7 @@ name: int-mysql-conversation
steps:
- name: integration-conversation
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -746,7 +746,7 @@ name: int-mysql-sharing
steps:
- name: integration-sharing
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -791,7 +791,7 @@ name: int-pgsql-callapi
steps:
- name: integration-callapi
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -834,7 +834,7 @@ name: int-pgsql-chat
steps:
- name: integration-chat
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -877,7 +877,7 @@ name: int-pgsql-conversation
steps:
- name: integration-conversation
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master
@ -920,7 +920,7 @@ name: int-pgsql-sharing
steps:
- name: integration-sharing
image: nextcloudci/php7.1:php7.1-16
image: nextcloudci/php7.3:php7.3-5
environment:
APP_NAME: spreed
CORE_BRANCH: master

2
tests/php/Activity/Provider/BaseTest.php

@ -56,7 +56,7 @@ class BaseTest extends TestCase {
/** @var Manager|MockObject */
protected $manager;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->l10nFactory = $this->createMock(IFactory::class);

2
tests/php/Activity/Provider/InvitationTest.php

@ -57,7 +57,7 @@ class InvitationTest extends TestCase {
/** @var Manager|MockObject */
protected $manager;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->l10nFactory = $this->createMock(IFactory::class);

2
tests/php/CapabilitiesTest.php

@ -42,7 +42,7 @@ class CapabilitiesTest extends TestCase {
/** @var IUserSession|MockObject */
protected $userSession;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->serverConfig = $this->createMock(IConfig::class);
$this->talkConfig = $this->createMock(Config::class);

2
tests/php/Chat/AutoComplete/SearchPluginTest.php

@ -50,7 +50,7 @@ class SearchPluginTest extends \Test\TestCase {
/** @var SearchPlugin */
protected $plugin;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->userManager = $this->createMock(IUserManager::class);

2
tests/php/Chat/AutoComplete/SorterTest.php

@ -61,7 +61,7 @@ class SorterTest extends \Test\TestCase {
],
];
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->commentsManager = $this->createMock(CommentsManager::class);

2
tests/php/Chat/ChatManagerTest.php

@ -49,7 +49,7 @@ class ChatManagerTest extends TestCase {
/** @var ChatManager */
protected $chatManager;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->commentsManager = $this->createMock(CommentsManager::class);

2
tests/php/Chat/Command/ExecutorTest.php

@ -56,7 +56,7 @@ class ExecutorTest extends TestCase {
/** @var Executor */
protected $executor;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->dispatcher = $this->createMock(EventDispatcherInterface::class);

2
tests/php/Chat/NotifierTest.php

@ -51,7 +51,7 @@ class NotifierTest extends \Test\TestCase {
/** @var \OCA\Talk\Chat\Notifier */
protected $notifier;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->notificationManager = $this->createMock(INotificationManager::class);

2
tests/php/Chat/Parser/SystemMessageTest.php

@ -61,7 +61,7 @@ class SystemMessageTest extends TestCase {
/** @var IL10N|MockObject */
protected $l;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->userManager = $this->createMock(IUserManager::class);

2
tests/php/Chat/Parser/UserMentionTest.php

@ -50,7 +50,7 @@ class UserMentionTest extends \Test\TestCase {
/** @var UserMention */
protected $parser;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->commentsManager = $this->createMock(ICommentsManager::class);

2
tests/php/Collaboration/Collaborators/RoomPluginTest.php

@ -50,7 +50,7 @@ class RoomPluginTest extends \Test\TestCase {
/** @var RoomPlugin */
protected $plugin;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->manager = $this->createMock(Manager::class);

2
tests/php/Collaboration/Resources/ConversationProviderTest.php

@ -49,7 +49,7 @@ class ConversationProviderTest extends TestCase {
/** @var ConversationProvider */
protected $provider;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->manager = $this->createMock(Manager::class);

2
tests/php/Command/Signaling/AddTest.php

@ -42,7 +42,7 @@ class AddTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Signaling/DeleteTest.php

@ -42,7 +42,7 @@ class DeleteTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Signaling/ListCommandTest.php

@ -42,7 +42,7 @@ class ListCommandTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Stun/AddTest.php

@ -42,7 +42,7 @@ class AddTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Stun/DeleteTest.php

@ -42,7 +42,7 @@ class DeleteTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Stun/ListCommandTest.php

@ -42,7 +42,7 @@ class ListCommandTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Turn/AddTest.php

@ -42,7 +42,7 @@ class AddTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Turn/DeleteTest.php

@ -42,7 +42,7 @@ class DeleteTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Command/Turn/ListCommandTest.php

@ -42,7 +42,7 @@ class ListCommandTest extends TestCase {
/** @var OutputInterface|\PHPUnit_Framework_MockObject_MockObject */
private $output;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);

2
tests/php/Controller/ChatControllerTest.php

@ -83,7 +83,7 @@ class ChatControllerTest extends TestCase {
/** @var Callback */
private $newMessageDateTimeConstraint;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->userId = 'testUser';

2
tests/php/Controller/RoomControllerTest.php

@ -69,7 +69,7 @@ class RoomControllerTest extends \Test\TestCase {
private $l;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->userId = 'testUser';

2
tests/php/Controller/SignalingControllerTest.php

@ -87,7 +87,7 @@ class SignalingControllerTest extends \Test\TestCase {
/** @var CustomInputSignalingController */
private $controller;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->userId = 'testUser';

2
tests/php/Notification/NotifierTest.php

@ -72,7 +72,7 @@ class NotifierTest extends \Test\TestCase {
/** @var Notifier */
protected $notifier;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->lFactory = $this->createMock(IFactory::class);

2
tests/php/Settings/Admin/SectionTest.php

@ -36,7 +36,7 @@ class SectionTest extends \Test\TestCase {
/** @var Section */
protected $admin;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->url = $this->createMock(IURLGenerator::class);

2
tests/php/Settings/Admin/StunServerTest.php

@ -36,7 +36,7 @@ class StunServerTest extends \Test\TestCase {
/** @var StunServer */
protected $admin;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(Config::class);

2
tests/php/Settings/Admin/TurnServerTest.php

@ -36,7 +36,7 @@ class TurnServerTest extends \Test\TestCase {
/** @var TurnServer */
protected $admin;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->config = $this->createMock(Config::class);

4
tests/php/Signaling/BackendNotifierTest.php

@ -92,7 +92,7 @@ class BackendNotifierTest extends \Test\TestCase {
/** @var BackendNotifier */
protected $originalBackendNotifier;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->userId = 'testUser';
@ -139,7 +139,7 @@ class BackendNotifierTest extends \Test\TestCase {
);
}
public function tearDown() {
public function tearDown(): void {
$config = \OC::$server->getConfig();
$config->deleteAppValue('spreed', 'signaling_servers');
$this->app->getContainer()->registerService(BackendNotifier::class, function() {

2
tests/php/TalkSessionTest.php

@ -37,7 +37,7 @@ class TalkSessionTest extends TestCase {
/** @var TalkSession */
protected $talkSession;
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->session = $this->createMock(ISession::class);

Loading…
Cancel
Save