diff --git a/.drone.starlark b/.drone.starlark index 63360bca40ff..f13e21663587 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -25,12 +25,11 @@ config = { 'phpunit': { 'allDatabases' : { 'phpVersions': [ - '7.1', + '7.2', ] }, 'reducedDatabases' : { 'phpVersions': [ - '7.2', '7.3', ], 'databases': [ @@ -41,7 +40,7 @@ config = { }, 'external-samba-windows' : { 'phpVersions': [ - '7.1', + '7.2', ], 'databases': [ 'sqlite', @@ -60,7 +59,7 @@ config = { }, 'external-other' : { 'phpVersions': [ - '7.1', + '7.2', ], 'databases': [ 'sqlite', @@ -270,7 +269,7 @@ def dependencies(): return pipelines default = { - 'phpVersions': ['7.1'], + 'phpVersions': ['7.2'], } if 'defaults' in config: @@ -468,7 +467,7 @@ def phpstan(): return pipelines default = { - 'phpVersions': ['7.1'], + 'phpVersions': ['7.2'], 'logLevel': '2', } @@ -545,7 +544,7 @@ def phan(): return pipelines default = { - 'phpVersions': ['7.1', '7.2', '7.3'], + 'phpVersions': ['7.2', '7.3'], 'logLevel': '2', } @@ -622,7 +621,7 @@ def litmus(): return pipelines default = { - 'phpVersions': ['7.1'], + 'phpVersions': ['7.2'], 'logLevel': '2' } @@ -788,7 +787,7 @@ def dav(): return pipelines default = { - 'phpVersions': ['7.1'], + 'phpVersions': ['7.2'], 'logLevel': '2' } @@ -886,7 +885,7 @@ def javascript(): default = { 'coverage': True, 'logLevel': '2', - 'phpVersion': '7.1' + 'phpVersion': '7.2' } if 'defaults' in config: @@ -982,7 +981,7 @@ def phptests(testType): errorFound = False default = { - 'phpVersions': ['7.1', '7.2', '7.3'], + 'phpVersions': ['7.2', '7.3'], 'databases': [ 'sqlite', 'mariadb:10.2', 'mariadb:10.3', 'mysql:5.5', 'mysql:5.7', 'mysql:8.0', 'postgres:9.4', 'postgres:10.3', 'oracle' ], @@ -1166,7 +1165,7 @@ def acceptance(): default = { 'federatedServerVersions': [''], 'browsers': ['chrome'], - 'phpVersions': ['7.1'], + 'phpVersions': ['7.2'], 'databases': ['mariadb:10.2'], 'federatedServerNeeded': False, 'filterTags': '', diff --git a/.drone.yml b/.drone.yml index fc107b9b215d..5d01be02a8cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: install-dependencies-php7.1 +name: install-dependencies-php7.2 platform: os: linux @@ -30,7 +30,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -38,7 +38,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -46,7 +46,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -168,12 +168,12 @@ trigger: - refs/heads/master depends_on: -- install-dependencies-php7.1 +- install-dependencies-php7.2 --- kind: pipeline type: docker -name: phpstan-php7.1 +name: phpstan-php7.2 platform: os: linux @@ -202,7 +202,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -210,7 +210,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -218,7 +218,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -228,7 +228,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -242,7 +242,7 @@ steps: - name: php-phpstan pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make test-php-phpstan @@ -253,92 +253,7 @@ trigger: - refs/heads/master depends_on: -- install-dependencies-php7.1 - ---- -kind: pipeline -type: docker -name: phan-php7.1 - -platform: - os: linux - arch: amd64 - -workspace: - base: /drone - path: src - -steps: -- name: cache-restore - pull: always - image: plugins/s3-cache:1 - settings: - access_key: - from_secret: cache_s3_access_key - endpoint: - from_secret: cache_s3_endpoint - restore: true - secret_key: - from_secret: cache_s3_secret_key - when: - instance: - - drone.owncloud.services - - drone.owncloud.com - -- name: composer-install - pull: always - image: owncloudci/php:7.1 - commands: - - make install-composer-deps - environment: - COMPOSER_HOME: /drone/src/.cache/composer - -- name: vendorbin-install - pull: always - image: owncloudci/php:7.1 - commands: - - make vendor-bin-deps - environment: - COMPOSER_HOME: /drone/src/.cache/composer - -- name: yarn-install - pull: always - image: owncloudci/php:7.1 - commands: - - make install-nodejs-deps - environment: - NPM_CONFIG_CACHE: /drone/src/.cache/npm - YARN_CACHE_FOLDER: /drone/src/.cache/yarn - bower_storage__packages: /drone/src/.cache/bower - -- name: install-server - pull: always - image: owncloudci/php:7.1 - commands: - - bash tests/drone/install-server.sh - - php occ a:l - - php occ config:system:set trusted_domains 1 --value=server - - php occ log:manage --level 2 - - php occ config:list - - php occ security:certificates:import /drone/server.crt - - php occ security:certificates - environment: - DB_TYPE: sqlite - -- name: phan - pull: always - image: owncloudci/php:7.1 - commands: - - make test-php-phan - -trigger: - ref: - - refs/pull/** - - refs/tags/** - - refs/heads/master - -depends_on: -- install-dependencies-php7.1 +- install-dependencies-php7.2 --- kind: pipeline @@ -423,7 +338,7 @@ trigger: - refs/heads/master depends_on: -- install-dependencies-php7.1 +- install-dependencies-php7.2 --- kind: pipeline @@ -508,7 +423,7 @@ trigger: - refs/heads/master depends_on: -- install-dependencies-php7.1 +- install-dependencies-php7.2 --- kind: pipeline @@ -542,7 +457,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -550,7 +465,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -558,7 +473,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -568,7 +483,7 @@ steps: - name: test-js pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make test-js @@ -598,15 +513,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: litmus-php7.1 +name: litmus-php7.2 platform: os: linux @@ -635,7 +549,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -643,7 +557,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -651,7 +565,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -661,7 +575,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -675,13 +589,13 @@ steps: - name: tech-preview pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - php occ config:system:set dav.enable.tech_preview --value=true --type boolean - name: setup-storage pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - mkdir -p /drone/src/work/local_storage - php occ app:enable files_external @@ -694,13 +608,13 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src - name: create-share pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - curl -k -s -u user1:123456 -X MKCOL "https://server/remote.php/webdav/new_folder" - curl -k -s -u user1:123456 "https://server/ocs/v2.php/apps/files_sharing/api/v1/shares" --data "path=/new_folder&shareType=0&permissions=15&name=new_folder&shareWith=admin" @@ -810,7 +724,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -832,15 +746,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: caldav-new-php7.1 +name: caldav-new-php7.2 platform: os: linux @@ -869,7 +782,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -877,7 +790,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -885,7 +798,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -895,7 +808,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -909,13 +822,13 @@ steps: - name: dav-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/caldav/install.sh - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -928,7 +841,7 @@ steps: - name: dav-test pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/caldav/script.sh @@ -950,15 +863,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: caldav-old-php7.1 +name: caldav-old-php7.2 platform: os: linux @@ -987,7 +899,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -995,7 +907,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1003,7 +915,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1013,7 +925,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1027,13 +939,13 @@ steps: - name: dav-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/caldav-old-endpoint/install.sh - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1046,7 +958,7 @@ steps: - name: dav-test pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/caldav-old-endpoint/script.sh @@ -1068,15 +980,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: carddav-new-php7.1 +name: carddav-new-php7.2 platform: os: linux @@ -1105,7 +1016,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1113,7 +1024,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1121,7 +1032,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1131,7 +1042,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1145,13 +1056,13 @@ steps: - name: dav-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/carddav/install.sh - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1164,7 +1075,7 @@ steps: - name: dav-test pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/carddav/script.sh @@ -1186,15 +1097,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: carddav-old-php7.1 +name: carddav-old-php7.2 platform: os: linux @@ -1223,7 +1133,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1231,7 +1141,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1239,7 +1149,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1249,7 +1159,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1263,13 +1173,13 @@ steps: - name: dav-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/carddav-old-endpoint/install.sh - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1282,7 +1192,7 @@ steps: - name: dav-test pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash apps/dav/tests/ci/carddav-old-endpoint/script.sh @@ -1304,15 +1214,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-sqlite +name: phpunit-php7.2-sqlite platform: os: linux @@ -1341,7 +1250,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1349,7 +1258,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1357,7 +1266,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1367,7 +1276,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1381,7 +1290,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1394,7 +1303,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -1427,15 +1336,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-mariadb10.2 +name: phpunit-php7.2-mariadb10.2 platform: os: linux @@ -1464,7 +1372,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1472,7 +1380,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1480,7 +1388,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1490,7 +1398,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1504,7 +1412,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1517,7 +1425,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -1560,15 +1468,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-mariadb10.3 +name: phpunit-php7.2-mariadb10.3 platform: os: linux @@ -1597,7 +1504,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1605,7 +1512,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1613,7 +1520,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1623,7 +1530,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1637,7 +1544,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1650,7 +1557,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -1693,15 +1600,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-mysql5.5 +name: phpunit-php7.2-mysql5.5 platform: os: linux @@ -1730,7 +1636,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1738,7 +1644,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1746,7 +1652,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1756,7 +1662,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1770,7 +1676,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1783,7 +1689,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -1826,15 +1732,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-mysql5.7 +name: phpunit-php7.2-mysql5.7 platform: os: linux @@ -1863,7 +1768,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -1871,7 +1776,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -1879,7 +1784,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -1889,7 +1794,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -1903,7 +1808,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -1916,7 +1821,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -1959,15 +1864,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-mysql8.0 +name: phpunit-php7.2-mysql8.0 platform: os: linux @@ -1996,7 +1900,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -2004,7 +1908,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -2012,7 +1916,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -2022,7 +1926,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -2036,7 +1940,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -2049,7 +1953,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -2094,15 +1998,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-postgres9.4 +name: phpunit-php7.2-postgres9.4 platform: os: linux @@ -2131,7 +2034,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -2139,7 +2042,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -2147,7 +2050,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -2157,7 +2060,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -2171,7 +2074,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -2184,7 +2087,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -2226,15 +2129,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-postgres10.3 +name: phpunit-php7.2-postgres10.3 platform: os: linux @@ -2263,7 +2165,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -2271,7 +2173,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -2279,7 +2181,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -2289,7 +2191,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -2303,7 +2205,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -2316,7 +2218,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -2358,15 +2260,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-oracle +name: phpunit-php7.2-oracle platform: os: linux @@ -2395,7 +2296,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -2403,7 +2304,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -2411,7 +2312,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -2421,7 +2322,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -2435,7 +2336,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -2448,7 +2349,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -2491,228 +2392,7 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 -- phan-php7.2 -- phan-php7.3 - ---- -kind: pipeline -type: docker -name: phpunit-php7.2-sqlite - -platform: - os: linux - arch: amd64 - -workspace: - base: /drone - path: src - -steps: -- name: cache-restore - pull: always - image: plugins/s3-cache:1 - settings: - access_key: - from_secret: cache_s3_access_key - endpoint: - from_secret: cache_s3_endpoint - restore: true - secret_key: - from_secret: cache_s3_secret_key - when: - instance: - - drone.owncloud.services - - drone.owncloud.com - -- name: composer-install - pull: always - image: owncloudci/php:7.2 - commands: - - make install-composer-deps - environment: - COMPOSER_HOME: /drone/src/.cache/composer - -- name: vendorbin-install - pull: always - image: owncloudci/php:7.2 - commands: - - make vendor-bin-deps - environment: - COMPOSER_HOME: /drone/src/.cache/composer - -- name: yarn-install - pull: always - image: owncloudci/php:7.2 - commands: - - make install-nodejs-deps - environment: - NPM_CONFIG_CACHE: /drone/src/.cache/npm - YARN_CACHE_FOLDER: /drone/src/.cache/yarn - bower_storage__packages: /drone/src/.cache/bower - -- name: install-server - pull: always - image: owncloudci/php:7.2 - commands: - - bash tests/drone/install-server.sh - - php occ a:l - - php occ config:system:set trusted_domains 1 --value=server - - php occ log:manage --level 2 - - php occ config:list - - php occ security:certificates:import /drone/server.crt - - php occ security:certificates - environment: - DB_TYPE: sqlite - -- name: fix-permissions - pull: always - image: owncloudci/php:7.2 - commands: - - chown -R www-data /drone/src - -- name: owncloud-log-server - pull: always - image: owncloud/ubuntu:18.04 - detach: true - commands: - - tail -f /drone/src/data/owncloud.log - -- name: phpunit-tests - pull: always - image: owncloudci/php:7.2 - commands: - - su-exec www-data bash tests/drone/test-phpunit.sh - environment: - COVERAGE: false - DB_TYPE: sqlite - -trigger: - ref: - - refs/pull/** - - refs/tags/** - - refs/heads/master - -depends_on: -- coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 -- phan-php7.2 -- phan-php7.3 - ---- -kind: pipeline -type: docker -name: phpunit-php7.2-mariadb10.2 - -platform: - os: linux - arch: amd64 - -workspace: - base: /drone - path: src - -steps: -- name: cache-restore - pull: always - image: plugins/s3-cache:1 - settings: - access_key: - from_secret: cache_s3_access_key - endpoint: - from_secret: cache_s3_endpoint - restore: true - secret_key: - from_secret: cache_s3_secret_key - when: - instance: - - drone.owncloud.services - - drone.owncloud.com - -- name: composer-install - pull: always - image: owncloudci/php:7.2 - commands: - - make install-composer-deps - environment: - COMPOSER_HOME: /drone/src/.cache/composer - -- name: vendorbin-install - pull: always - image: owncloudci/php:7.2 - commands: - - make vendor-bin-deps - environment: - COMPOSER_HOME: /drone/src/.cache/composer - -- name: yarn-install - pull: always - image: owncloudci/php:7.2 - commands: - - make install-nodejs-deps - environment: - NPM_CONFIG_CACHE: /drone/src/.cache/npm - YARN_CACHE_FOLDER: /drone/src/.cache/yarn - bower_storage__packages: /drone/src/.cache/bower - -- name: install-server - pull: always - image: owncloudci/php:7.2 - commands: - - bash tests/drone/install-server.sh - - php occ a:l - - php occ config:system:set trusted_domains 1 --value=server - - php occ log:manage --level 2 - - php occ config:list - - php occ security:certificates:import /drone/server.crt - - php occ security:certificates - environment: - DB_TYPE: mariadb - -- name: fix-permissions - pull: always - image: owncloudci/php:7.2 - commands: - - chown -R www-data /drone/src - -- name: owncloud-log-server - pull: always - image: owncloud/ubuntu:18.04 - detach: true - commands: - - tail -f /drone/src/data/owncloud.log - -- name: phpunit-tests - pull: always - image: owncloudci/php:7.2 - commands: - - su-exec www-data bash tests/drone/test-phpunit.sh - environment: - COVERAGE: false - DB_TYPE: mariadb - -services: -- name: mariadb - pull: always - image: mariadb:10.2 - environment: - MYSQL_DATABASE: owncloud - MYSQL_PASSWORD: owncloud - MYSQL_ROOT_PASSWORD: owncloud - MYSQL_USER: owncloud - -trigger: - ref: - - refs/pull/** - - refs/tags/** - - refs/heads/master - -depends_on: -- coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 @@ -2816,8 +2496,7 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 @@ -2931,15 +2610,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-sqlite-samba +name: phpunit-php7.2-sqlite-samba platform: os: linux @@ -2968,7 +2646,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -2976,7 +2654,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -2984,7 +2662,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -2994,7 +2672,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3008,7 +2686,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3021,7 +2699,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - ls -l /var/cache - mkdir /var/cache/samba @@ -3070,15 +2748,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-sqlite-windows +name: phpunit-php7.2-sqlite-windows platform: os: linux @@ -3107,7 +2784,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3115,7 +2792,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3123,7 +2800,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3133,7 +2810,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3147,7 +2824,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3160,7 +2837,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - ls -l /var/cache - mkdir /var/cache/samba @@ -3198,15 +2875,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-sqlite-webdav +name: phpunit-php7.2-sqlite-webdav platform: os: linux @@ -3235,7 +2911,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3243,7 +2919,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3251,7 +2927,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3261,7 +2937,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3275,7 +2951,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3288,7 +2964,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -3333,15 +3009,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-sqlite-sftp +name: phpunit-php7.2-sqlite-sftp platform: os: linux @@ -3370,7 +3045,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3378,7 +3053,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3386,7 +3061,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3396,7 +3071,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3410,7 +3085,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3423,7 +3098,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -3464,15 +3139,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: phpunit-php7.1-sqlite-scality +name: phpunit-php7.2-sqlite-scality platform: os: linux @@ -3501,7 +3175,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3509,7 +3183,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3517,7 +3191,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3527,7 +3201,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3541,7 +3215,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/files_primary_s3.git /drone/src/apps/files_primary_s3 - cd /drone/src/apps/files_primary_s3 @@ -3553,7 +3227,7 @@ steps: - name: setup-scality pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - wait-for-it -t 120 scality:8000 - cp /drone/src/apps/files_primary_s3/tests/drone/scality.config.php /drone/src/config @@ -3561,7 +3235,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3574,7 +3248,7 @@ steps: - name: phpunit-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - su-exec www-data bash tests/drone/test-phpunit.sh environment: @@ -3615,15 +3289,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiAuth-mariadb10.2-php7.1 +name: apiAuth-mariadb10.2-php7.2 platform: os: linux @@ -3652,7 +3325,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3660,7 +3333,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3668,7 +3341,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3678,7 +3351,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3692,7 +3365,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -3704,7 +3377,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3717,7 +3390,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -3739,7 +3412,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -3761,15 +3434,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiAuthOcs-mariadb10.2-php7.1 +name: apiAuthOcs-mariadb10.2-php7.2 platform: os: linux @@ -3798,7 +3470,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3806,7 +3478,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3814,7 +3486,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3824,7 +3496,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3838,7 +3510,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -3850,7 +3522,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -3863,7 +3535,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -3885,7 +3557,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -3907,15 +3579,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiCapabilities-mariadb10.2-php7.1 +name: apiCapabilities-mariadb10.2-php7.2 platform: os: linux @@ -3944,7 +3615,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -3952,7 +3623,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -3960,7 +3631,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -3970,7 +3641,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -3984,7 +3655,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -3996,7 +3667,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4009,7 +3680,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4031,7 +3702,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4053,15 +3724,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiComments-mariadb10.2-php7.1 +name: apiComments-mariadb10.2-php7.2 platform: os: linux @@ -4090,7 +3760,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4098,7 +3768,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4106,7 +3776,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4116,7 +3786,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -4130,7 +3800,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -4142,7 +3812,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4155,7 +3825,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4177,7 +3847,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4199,15 +3869,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiFavorites-mariadb10.2-php7.1 +name: apiFavorites-mariadb10.2-php7.2 platform: os: linux @@ -4236,7 +3905,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4244,7 +3913,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4252,7 +3921,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4262,7 +3931,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -4276,7 +3945,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -4288,7 +3957,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4301,7 +3970,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4323,7 +3992,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4345,15 +4014,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiMain-mariadb10.2-php7.1 +name: apiMain-mariadb10.2-php7.2 platform: os: linux @@ -4382,7 +4050,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4390,7 +4058,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4398,7 +4066,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4408,7 +4076,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -4422,7 +4090,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -4434,7 +4102,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4447,7 +4115,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4469,7 +4137,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4491,15 +4159,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProvisioning-v1-mariadb10.2-php7.1 +name: apiProvisioning-v1-mariadb10.2-php7.2 platform: os: linux @@ -4528,7 +4195,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4536,7 +4203,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4544,7 +4211,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4554,7 +4221,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -4568,7 +4235,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -4580,7 +4247,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4593,7 +4260,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4615,7 +4282,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4637,15 +4304,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProvisioning-v2-mariadb10.2-php7.1 +name: apiProvisioning-v2-mariadb10.2-php7.2 platform: os: linux @@ -4674,7 +4340,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4682,7 +4348,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4690,7 +4356,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4700,7 +4366,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -4714,7 +4380,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -4726,7 +4392,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4739,7 +4405,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4761,7 +4427,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4783,15 +4449,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProvisioningGroups-v1-mariadb10.2-php7.1 +name: apiProvisioningGroups-v1-mariadb10.2-php7.2 platform: os: linux @@ -4820,7 +4485,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4828,7 +4493,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4836,7 +4501,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4846,7 +4511,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -4860,7 +4525,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -4872,7 +4537,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -4885,7 +4550,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -4907,7 +4572,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -4929,15 +4594,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProvisioningGroups-v2-mariadb10.2-php7.1 +name: apiProvisioningGroups-v2-mariadb10.2-php7.2 platform: os: linux @@ -4966,7 +4630,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -4974,7 +4638,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -4982,7 +4646,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -4992,7 +4656,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5006,7 +4670,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5018,7 +4682,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5031,7 +4695,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5053,7 +4717,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5075,15 +4739,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiSharees-mariadb10.2-php7.1 +name: apiSharees-mariadb10.2-php7.2 platform: os: linux @@ -5112,7 +4775,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5120,7 +4783,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -5128,7 +4791,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -5138,7 +4801,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5152,7 +4815,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5164,7 +4827,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5177,7 +4840,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5199,7 +4862,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5221,15 +4884,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiShareManagement-mariadb10.2-php7.1 +name: apiShareManagement-mariadb10.2-php7.2 platform: os: linux @@ -5258,7 +4920,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5266,7 +4928,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -5274,7 +4936,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -5284,7 +4946,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5298,7 +4960,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5310,7 +4972,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5323,7 +4985,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5345,7 +5007,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5367,15 +5029,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiShareManagementBasic-mariadb10.2-php7.1 +name: apiShareManagementBasic-mariadb10.2-php7.2 platform: os: linux @@ -5404,7 +5065,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5412,7 +5073,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -5420,7 +5081,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -5430,7 +5091,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5444,7 +5105,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5456,7 +5117,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5469,7 +5130,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5491,7 +5152,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5513,15 +5174,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiShareOperations-mariadb10.2-php7.1 +name: apiShareOperations-mariadb10.2-php7.2 platform: os: linux @@ -5550,7 +5210,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5558,7 +5218,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -5566,7 +5226,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -5576,7 +5236,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5590,7 +5250,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5602,7 +5262,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5615,7 +5275,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5637,7 +5297,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5659,15 +5319,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiShareReshare-mariadb10.2-php7.1 +name: apiShareReshare-mariadb10.2-php7.2 platform: os: linux @@ -5696,7 +5355,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5704,7 +5363,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -5712,7 +5371,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -5722,7 +5381,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5736,7 +5395,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5748,7 +5407,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5761,7 +5420,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5783,7 +5442,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5805,15 +5464,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiShareUpdate-mariadb10.2-php7.1 +name: apiShareUpdate-mariadb10.2-php7.2 platform: os: linux @@ -5842,7 +5500,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5850,7 +5508,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -5858,7 +5516,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -5868,7 +5526,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -5882,7 +5540,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -5894,7 +5552,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -5907,7 +5565,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -5929,7 +5587,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -5951,15 +5609,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiTags-mariadb10.2-php7.1 +name: apiTags-mariadb10.2-php7.2 platform: os: linux @@ -5988,7 +5645,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -5996,7 +5653,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6004,7 +5661,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6014,7 +5671,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6028,7 +5685,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6040,7 +5697,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6053,7 +5710,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6075,7 +5732,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6097,15 +5754,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiTrashbin-mariadb10.2-php7.1 +name: apiTrashbin-mariadb10.2-php7.2 platform: os: linux @@ -6134,7 +5790,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -6142,7 +5798,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6150,7 +5806,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6160,7 +5816,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6174,7 +5830,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6186,7 +5842,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6199,7 +5855,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6221,7 +5877,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6243,15 +5899,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiVersions-mariadb10.2-php7.1 +name: apiVersions-mariadb10.2-php7.2 platform: os: linux @@ -6280,7 +5935,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -6288,7 +5943,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6296,7 +5951,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6306,7 +5961,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6320,7 +5975,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6332,7 +5987,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6345,7 +6000,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6367,7 +6022,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6389,15 +6044,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiWebdavLocks-mariadb10.2-php7.1 +name: apiWebdavLocks-mariadb10.2-php7.2 platform: os: linux @@ -6426,7 +6080,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -6434,7 +6088,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6442,7 +6096,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6452,7 +6106,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6466,7 +6120,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6478,7 +6132,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6491,7 +6145,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6513,7 +6167,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6535,15 +6189,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiWebdavLocks2-mariadb10.2-php7.1 +name: apiWebdavLocks2-mariadb10.2-php7.2 platform: os: linux @@ -6572,7 +6225,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -6580,7 +6233,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6588,7 +6241,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6598,7 +6251,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6612,7 +6265,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6624,7 +6277,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6637,7 +6290,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6659,7 +6312,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6681,15 +6334,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiWebdavMove-mariadb10.2-php7.1 +name: apiWebdavMove-mariadb10.2-php7.2 platform: os: linux @@ -6718,7 +6370,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -6726,7 +6378,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6734,7 +6386,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6744,7 +6396,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6758,7 +6410,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6770,7 +6422,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6783,7 +6435,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6805,7 +6457,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6827,15 +6479,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiWebdavOperations-mariadb10.2-php7.1 +name: apiWebdavOperations-mariadb10.2-php7.2 platform: os: linux @@ -6864,7 +6515,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -6872,7 +6523,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -6880,7 +6531,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -6890,7 +6541,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -6904,7 +6555,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -6916,7 +6567,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -6929,7 +6580,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -6951,7 +6602,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -6973,15 +6624,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiWebdavProperties-mariadb10.2-php7.1 +name: apiWebdavProperties-mariadb10.2-php7.2 platform: os: linux @@ -7010,7 +6660,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -7018,7 +6668,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -7026,7 +6676,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -7036,7 +6686,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -7050,7 +6700,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -7062,7 +6712,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -7075,7 +6725,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -7097,7 +6747,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7119,15 +6769,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiWebdavUpload-mariadb10.2-php7.1 +name: apiWebdavUpload-mariadb10.2-php7.2 platform: os: linux @@ -7156,7 +6805,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -7164,7 +6813,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -7172,7 +6821,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -7182,7 +6831,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -7196,7 +6845,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -7208,7 +6857,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -7221,7 +6870,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -7243,7 +6892,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7265,15 +6914,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiSharingNotifications-mariadb10.2-php7.1 +name: apiSharingNotifications-mariadb10.2-php7.2 platform: os: linux @@ -7302,7 +6950,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -7310,7 +6958,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -7318,7 +6966,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -7328,7 +6976,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -7342,7 +6990,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -7361,7 +7009,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -7374,7 +7022,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -7396,7 +7044,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7418,15 +7066,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiFederation-master-mariadb10.2-php7.1 +name: apiFederation-master-mariadb10.2-php7.2 platform: os: linux @@ -7455,7 +7102,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -7463,7 +7110,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -7471,7 +7118,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -7481,7 +7128,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -7504,7 +7151,7 @@ steps: - name: configure-federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - cd /drone/federated - php occ a:l @@ -7528,7 +7175,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -7540,7 +7187,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src - chown -R www-data /drone/federated @@ -7554,7 +7201,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -7576,7 +7223,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7592,7 +7239,7 @@ services: - name: federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7614,15 +7261,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiFederation-10.2.1-mariadb10.2-php7.1 +name: apiFederation-10.2.1-mariadb10.2-php7.2 platform: os: linux @@ -7651,7 +7297,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -7659,7 +7305,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -7667,7 +7313,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -7677,7 +7323,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -7700,7 +7346,7 @@ steps: - name: configure-federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - cd /drone/federated - php occ a:l @@ -7724,7 +7370,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -7736,7 +7382,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src - chown -R www-data /drone/federated @@ -7750,7 +7396,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -7772,7 +7418,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7788,7 +7434,7 @@ services: - name: federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7810,15 +7456,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: cliBackground-mariadb10.2-php7.1 +name: cliBackground-mariadb10.2-php7.2 platform: os: linux @@ -7847,7 +7492,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -7855,7 +7500,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -7863,7 +7508,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -7873,7 +7518,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -7887,7 +7532,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -7899,7 +7544,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -7912,7 +7557,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -7939,7 +7584,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -7961,15 +7606,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: cliMain-mariadb10.2-php7.1 +name: cliMain-mariadb10.2-php7.2 platform: os: linux @@ -7998,7 +7642,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8006,7 +7650,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8014,7 +7658,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8024,7 +7668,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8038,7 +7682,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8050,7 +7694,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8063,7 +7707,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -8090,7 +7734,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -8112,15 +7756,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: cliProvisioning-mariadb10.2-php7.1 +name: cliProvisioning-mariadb10.2-php7.2 platform: os: linux @@ -8149,7 +7792,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8157,7 +7800,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8165,7 +7808,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8175,7 +7818,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8189,7 +7832,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8201,7 +7844,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8214,7 +7857,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -8241,7 +7884,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -8263,15 +7906,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: cliTrashbin-mariadb10.2-php7.1 +name: cliTrashbin-mariadb10.2-php7.2 platform: os: linux @@ -8300,7 +7942,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8308,7 +7950,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8316,7 +7958,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8326,7 +7968,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8340,7 +7982,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8352,7 +7994,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8365,7 +8007,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -8392,7 +8034,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -8414,15 +8056,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: cliAppManagement-mariadb10.2-php7.1 +name: cliAppManagement-mariadb10.2-php7.2 platform: os: linux @@ -8451,7 +8092,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8459,7 +8100,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8467,7 +8108,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8477,7 +8118,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8491,7 +8132,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8503,7 +8144,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8516,7 +8157,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -8538,7 +8179,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -8560,15 +8201,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIAddUsers-chrome-mariadb10.2-php7.1 +name: webUIAddUsers-chrome-mariadb10.2-php7.2 platform: os: linux @@ -8597,7 +8237,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8605,7 +8245,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8613,7 +8253,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8623,7 +8263,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8637,7 +8277,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8649,7 +8289,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8662,7 +8302,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -8699,7 +8339,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -8717,15 +8357,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIAdminSettings-chrome-mariadb10.2-php7.1 +name: webUIAdminSettings-chrome-mariadb10.2-php7.2 platform: os: linux @@ -8754,7 +8393,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8762,7 +8401,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8770,7 +8409,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8780,7 +8419,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8794,7 +8433,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8806,7 +8445,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8819,7 +8458,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -8856,7 +8495,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -8874,15 +8513,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIComments-chrome-mariadb10.2-php7.1 +name: webUIComments-chrome-mariadb10.2-php7.2 platform: os: linux @@ -8911,7 +8549,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -8919,7 +8557,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -8927,7 +8565,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -8937,7 +8575,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -8951,7 +8589,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -8963,7 +8601,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -8976,7 +8614,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9013,7 +8651,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9031,15 +8669,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUICreateDelete-chrome-mariadb10.2-php7.1 +name: webUICreateDelete-chrome-mariadb10.2-php7.2 platform: os: linux @@ -9068,7 +8705,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -9076,7 +8713,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -9084,7 +8721,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -9094,7 +8731,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -9108,7 +8745,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -9120,7 +8757,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -9133,7 +8770,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9170,7 +8807,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9188,15 +8825,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIFavorites-chrome-mariadb10.2-php7.1 +name: webUIFavorites-chrome-mariadb10.2-php7.2 platform: os: linux @@ -9225,7 +8861,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -9233,7 +8869,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -9241,7 +8877,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -9251,7 +8887,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -9265,7 +8901,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -9277,7 +8913,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -9290,7 +8926,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9327,7 +8963,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9345,15 +8981,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIFiles-chrome-mariadb10.2-php7.1 +name: webUIFiles-chrome-mariadb10.2-php7.2 platform: os: linux @@ -9382,7 +9017,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -9390,7 +9025,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -9398,7 +9033,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -9408,7 +9043,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -9422,7 +9057,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -9434,7 +9069,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -9447,7 +9082,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9484,7 +9119,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9502,15 +9137,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUILogin-chrome-mariadb10.2-php7.1 +name: webUILogin-chrome-mariadb10.2-php7.2 platform: os: linux @@ -9539,7 +9173,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -9547,7 +9181,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -9555,7 +9189,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -9565,7 +9199,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -9579,7 +9213,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -9591,7 +9225,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -9604,7 +9238,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9641,7 +9275,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9659,15 +9293,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIManageQuota-chrome-mariadb10.2-php7.1 +name: webUIManageQuota-chrome-mariadb10.2-php7.2 platform: os: linux @@ -9696,7 +9329,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -9704,7 +9337,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -9712,7 +9345,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -9722,7 +9355,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -9736,7 +9369,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -9748,7 +9381,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -9761,7 +9394,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9798,7 +9431,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9816,15 +9449,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIManageUsersGrps-chrome-mariadb10.2-php7.1 +name: webUIManageUsersGrps-chrome-mariadb10.2-php7.2 platform: os: linux @@ -9853,7 +9485,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -9861,7 +9493,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -9869,7 +9501,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -9879,7 +9511,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -9893,7 +9525,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -9905,7 +9537,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -9918,7 +9550,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -9955,7 +9587,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -9973,15 +9605,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIMoveFilesFolder-chrome-mariadb10.2-php7.1 +name: webUIMoveFilesFolder-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10010,7 +9641,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10018,7 +9649,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10026,7 +9657,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10036,7 +9667,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10050,7 +9681,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -10062,7 +9693,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -10075,7 +9706,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -10112,7 +9743,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -10130,15 +9761,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIPersonalSetting-chrome-mariadb10.2-php7.1 +name: webUIPersonalSetting-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10167,7 +9797,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10175,7 +9805,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10183,7 +9813,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10193,7 +9823,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10207,7 +9837,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -10219,7 +9849,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -10232,7 +9862,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -10269,7 +9899,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -10287,15 +9917,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIRenameFiles-chrome-mariadb10.2-php7.1 +name: webUIRenameFiles-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10324,7 +9953,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10332,7 +9961,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10340,7 +9969,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10350,7 +9979,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10364,7 +9993,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -10376,7 +10005,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -10389,7 +10018,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -10426,7 +10055,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -10444,15 +10073,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIRenameFolders-chrome-mariadb10.2-php7.1 +name: webUIRenameFolders-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10481,7 +10109,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10489,7 +10117,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10497,7 +10125,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10507,7 +10135,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10521,7 +10149,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -10533,7 +10161,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -10546,7 +10174,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -10583,7 +10211,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -10601,15 +10229,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIRestrictSharing-chrome-mariadb10.2-php7.1 +name: webUIRestrictSharing-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10638,7 +10265,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10646,7 +10273,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10654,7 +10281,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10664,7 +10291,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10678,7 +10305,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -10690,7 +10317,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -10703,7 +10330,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -10740,7 +10367,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -10758,15 +10385,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISettingsMenu-chrome-mariadb10.2-php7.1 +name: webUISettingsMenu-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10795,7 +10421,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10803,7 +10429,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10811,7 +10437,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10821,7 +10447,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10835,7 +10461,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -10847,7 +10473,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -10860,7 +10486,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -10897,7 +10523,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -10915,15 +10541,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingAcceptSh-chrome-mariadb10.2-php7.1 +name: webUISharingAcceptSh-chrome-mariadb10.2-php7.2 platform: os: linux @@ -10952,7 +10577,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -10960,7 +10585,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -10968,7 +10593,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -10978,7 +10603,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -10992,7 +10617,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11004,7 +10629,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11017,7 +10642,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11054,7 +10679,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -11072,15 +10697,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingAutocomp-chrome-mariadb10.2-php7.1 +name: webUISharingAutocomp-chrome-mariadb10.2-php7.2 platform: os: linux @@ -11109,7 +10733,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -11117,7 +10741,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -11125,7 +10749,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -11135,7 +10759,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -11149,7 +10773,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11161,7 +10785,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11174,7 +10798,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11211,7 +10835,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -11229,15 +10853,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingIntGroup-chrome-mariadb10.2-php7.1 +name: webUISharingIntGroup-chrome-mariadb10.2-php7.2 platform: os: linux @@ -11266,7 +10889,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -11274,7 +10897,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -11282,7 +10905,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -11292,7 +10915,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -11306,7 +10929,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11318,7 +10941,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11331,7 +10954,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11368,7 +10991,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -11386,15 +11009,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingIntUsers-chrome-mariadb10.2-php7.1 +name: webUISharingIntUsers-chrome-mariadb10.2-php7.2 platform: os: linux @@ -11423,7 +11045,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -11431,7 +11053,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -11439,7 +11061,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -11449,7 +11071,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -11463,7 +11085,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11475,7 +11097,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11488,7 +11110,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11525,7 +11147,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -11543,15 +11165,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingPublic-chrome-mariadb10.2-php7.1 +name: webUISharingPublic-chrome-mariadb10.2-php7.2 platform: os: linux @@ -11580,7 +11201,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -11588,7 +11209,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -11596,7 +11217,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -11606,7 +11227,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -11620,7 +11241,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11632,7 +11253,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11645,7 +11266,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11682,7 +11303,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -11700,15 +11321,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUITags-chrome-mariadb10.2-php7.1 +name: webUITags-chrome-mariadb10.2-php7.2 platform: os: linux @@ -11737,7 +11357,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -11745,7 +11365,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -11753,7 +11373,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -11763,7 +11383,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -11777,7 +11397,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11789,7 +11409,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11802,7 +11422,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11839,7 +11459,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -11857,15 +11477,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUITrashbin-chrome-mariadb10.2-php7.1 +name: webUITrashbin-chrome-mariadb10.2-php7.2 platform: os: linux @@ -11894,7 +11513,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -11902,7 +11521,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -11910,7 +11529,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -11920,7 +11539,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -11934,7 +11553,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -11946,7 +11565,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -11959,7 +11578,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -11996,7 +11615,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12014,15 +11633,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIUpload-chrome-mariadb10.2-php7.1 +name: webUIUpload-chrome-mariadb10.2-php7.2 platform: os: linux @@ -12051,7 +11669,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -12059,7 +11677,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -12067,7 +11685,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -12077,7 +11695,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -12091,7 +11709,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -12103,7 +11721,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -12116,7 +11734,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -12153,7 +11771,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12171,15 +11789,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIWebdavLockProt-chrome-mariadb10.2-php7.1 +name: webUIWebdavLockProt-chrome-mariadb10.2-php7.2 platform: os: linux @@ -12208,7 +11825,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -12216,7 +11833,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -12224,7 +11841,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -12234,7 +11851,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -12248,7 +11865,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -12260,7 +11877,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -12273,7 +11890,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -12310,7 +11927,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12328,15 +11945,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIWebdavLocks-chrome-mariadb10.2-php7.1 +name: webUIWebdavLocks-chrome-mariadb10.2-php7.2 platform: os: linux @@ -12365,7 +11981,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -12373,7 +11989,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -12381,7 +11997,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -12391,7 +12007,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -12405,7 +12021,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -12417,7 +12033,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -12430,7 +12046,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -12467,7 +12083,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12485,15 +12101,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingNotify-chrome-mariadb10.2-php7.1 +name: webUISharingNotify-chrome-mariadb10.2-php7.2 platform: os: linux @@ -12522,7 +12137,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -12530,7 +12145,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -12538,7 +12153,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -12548,7 +12163,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -12562,7 +12177,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -12581,7 +12196,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -12594,7 +12209,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -12631,7 +12246,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12649,15 +12264,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingExt-master-chrome-mariadb10.2-php7.1 +name: webUISharingExt-master-chrome-mariadb10.2-php7.2 platform: os: linux @@ -12686,7 +12300,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -12694,7 +12308,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -12702,7 +12316,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -12712,7 +12326,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -12735,7 +12349,7 @@ steps: - name: configure-federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - cd /drone/federated - php occ a:l @@ -12759,7 +12373,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -12771,7 +12385,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src - chown -R www-data /drone/federated @@ -12785,7 +12399,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -12817,7 +12431,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12833,7 +12447,7 @@ services: - name: federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -12855,15 +12469,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUISharingExt-10.2.1-chrome-mariadb10.2-php7.1 +name: webUISharingExt-10.2.1-chrome-mariadb10.2-php7.2 platform: os: linux @@ -12892,7 +12505,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -12900,7 +12513,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -12908,7 +12521,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -12918,7 +12531,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -12941,7 +12554,7 @@ steps: - name: configure-federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - cd /drone/federated - php occ a:l @@ -12965,7 +12578,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -12977,7 +12590,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src - chown -R www-data /drone/federated @@ -12991,7 +12604,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -13023,7 +12636,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13039,7 +12652,7 @@ services: - name: federated pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13061,15 +12674,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIFfSmoke-3-1-firefox-mariadb10.2-php7.1 +name: webUIFfSmoke-3-1-firefox-mariadb10.2-php7.2 platform: os: linux @@ -13098,7 +12710,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -13106,7 +12718,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -13114,7 +12726,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -13124,7 +12736,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -13138,7 +12750,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -13150,7 +12762,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -13163,7 +12775,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -13203,7 +12815,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13221,15 +12833,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIFfSmoke-3-2-firefox-mariadb10.2-php7.1 +name: webUIFfSmoke-3-2-firefox-mariadb10.2-php7.2 platform: os: linux @@ -13258,7 +12869,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -13266,7 +12877,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -13274,7 +12885,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -13284,7 +12895,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -13298,7 +12909,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -13310,7 +12921,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -13323,7 +12934,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -13363,7 +12974,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13381,15 +12992,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIFfSmoke-3-3-firefox-mariadb10.2-php7.1 +name: webUIFfSmoke-3-3-firefox-mariadb10.2-php7.2 platform: os: linux @@ -13418,7 +13028,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -13426,7 +13036,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -13434,7 +13044,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -13444,7 +13054,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -13458,7 +13068,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -13470,7 +13080,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -13483,7 +13093,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -13523,7 +13133,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13541,15 +13151,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIProxySmoke-3-1-chrome-mariadb10.2-php7.1 +name: webUIProxySmoke-3-1-chrome-mariadb10.2-php7.2 platform: os: linux @@ -13578,7 +13187,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -13586,7 +13195,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -13594,7 +13203,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -13604,7 +13213,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -13619,7 +13228,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -13631,7 +13240,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -13644,7 +13253,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -13689,7 +13298,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13707,15 +13316,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIProxySmoke-3-2-chrome-mariadb10.2-php7.1 +name: webUIProxySmoke-3-2-chrome-mariadb10.2-php7.2 platform: os: linux @@ -13744,7 +13352,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -13752,7 +13360,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -13760,7 +13368,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -13770,7 +13378,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -13785,7 +13393,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -13797,7 +13405,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -13810,7 +13418,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -13855,7 +13463,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -13873,15 +13481,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: webUIProxySmoke-3-3-chrome-mariadb10.2-php7.1 +name: webUIProxySmoke-3-3-chrome-mariadb10.2-php7.2 platform: os: linux @@ -13910,7 +13517,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -13918,7 +13525,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -13926,7 +13533,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -13936,7 +13543,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -13951,7 +13558,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -13963,7 +13570,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -13976,7 +13583,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -14021,7 +13628,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -14039,15 +13646,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProxySmoke-3-1-mariadb10.2-php7.1 +name: apiProxySmoke-3-1-mariadb10.2-php7.2 platform: os: linux @@ -14076,7 +13682,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -14084,7 +13690,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -14092,7 +13698,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -14102,7 +13708,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -14117,7 +13723,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -14129,7 +13735,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -14142,7 +13748,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -14172,7 +13778,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -14190,15 +13796,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProxySmoke-3-2-mariadb10.2-php7.1 +name: apiProxySmoke-3-2-mariadb10.2-php7.2 platform: os: linux @@ -14227,7 +13832,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -14235,7 +13840,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -14243,7 +13848,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -14253,7 +13858,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -14268,7 +13873,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -14280,7 +13885,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -14293,7 +13898,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -14323,7 +13928,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -14341,15 +13946,14 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 --- kind: pipeline type: docker -name: apiProxySmoke-3-3-mariadb10.2-php7.1 +name: apiProxySmoke-3-3-mariadb10.2-php7.2 platform: os: linux @@ -14378,7 +13982,7 @@ steps: - name: composer-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-composer-deps environment: @@ -14386,7 +13990,7 @@ steps: - name: vendorbin-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make vendor-bin-deps environment: @@ -14394,7 +13998,7 @@ steps: - name: yarn-install pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - make install-nodejs-deps environment: @@ -14404,7 +14008,7 @@ steps: - name: install-server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - bash tests/drone/install-server.sh - php occ a:l @@ -14419,7 +14023,7 @@ steps: - name: install-extra-apps pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - git clone https://github.com/owncloud/testing.git /drone/src/apps/testing - cd /drone/src/apps/testing @@ -14431,7 +14035,7 @@ steps: - name: fix-permissions pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - chown -R www-data /drone/src @@ -14444,7 +14048,7 @@ steps: - name: acceptance-tests pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 commands: - touch /drone/saved-settings.sh - . /drone/saved-settings.sh @@ -14474,7 +14078,7 @@ services: - name: server pull: always - image: owncloudci/php:7.1 + image: owncloudci/php:7.2 command: - /usr/local/bin/apachectl - -e @@ -14492,8 +14096,7 @@ trigger: depends_on: - coding-standard-php7.3 -- phpstan-php7.1 -- phan-php7.1 +- phpstan-php7.2 - phan-php7.2 - phan-php7.3 @@ -14528,98 +14131,96 @@ trigger: depends_on: - test-javascript -- litmus-php7.1 -- caldav-new-php7.1 -- caldav-old-php7.1 -- carddav-new-php7.1 -- carddav-old-php7.1 -- phpunit-php7.1-sqlite -- phpunit-php7.1-mariadb10.2 -- phpunit-php7.1-mariadb10.3 -- phpunit-php7.1-mysql5.5 -- phpunit-php7.1-mysql5.7 -- phpunit-php7.1-mysql8.0 -- phpunit-php7.1-postgres9.4 -- phpunit-php7.1-postgres10.3 -- phpunit-php7.1-oracle +- litmus-php7.2 +- caldav-new-php7.2 +- caldav-old-php7.2 +- carddav-new-php7.2 +- carddav-old-php7.2 - phpunit-php7.2-sqlite - phpunit-php7.2-mariadb10.2 +- phpunit-php7.2-mariadb10.3 +- phpunit-php7.2-mysql5.5 +- phpunit-php7.2-mysql5.7 +- phpunit-php7.2-mysql8.0 +- phpunit-php7.2-postgres9.4 +- phpunit-php7.2-postgres10.3 +- phpunit-php7.2-oracle - phpunit-php7.3-sqlite - phpunit-php7.3-mariadb10.2 -- phpunit-php7.1-sqlite-samba -- phpunit-php7.1-sqlite-windows -- phpunit-php7.1-sqlite-webdav -- phpunit-php7.1-sqlite-sftp -- phpunit-php7.1-sqlite-scality -- apiAuth-mariadb10.2-php7.1 -- apiAuthOcs-mariadb10.2-php7.1 -- apiCapabilities-mariadb10.2-php7.1 -- apiComments-mariadb10.2-php7.1 -- apiFavorites-mariadb10.2-php7.1 -- apiMain-mariadb10.2-php7.1 -- apiProvisioning-v1-mariadb10.2-php7.1 -- apiProvisioning-v2-mariadb10.2-php7.1 -- apiProvisioningGroups-v1-mariadb10.2-php7.1 -- apiProvisioningGroups-v2-mariadb10.2-php7.1 -- apiSharees-mariadb10.2-php7.1 -- apiShareManagement-mariadb10.2-php7.1 -- apiShareManagementBasic-mariadb10.2-php7.1 -- apiShareOperations-mariadb10.2-php7.1 -- apiShareReshare-mariadb10.2-php7.1 -- apiShareUpdate-mariadb10.2-php7.1 -- apiTags-mariadb10.2-php7.1 -- apiTrashbin-mariadb10.2-php7.1 -- apiVersions-mariadb10.2-php7.1 -- apiWebdavLocks-mariadb10.2-php7.1 -- apiWebdavLocks2-mariadb10.2-php7.1 -- apiWebdavMove-mariadb10.2-php7.1 -- apiWebdavOperations-mariadb10.2-php7.1 -- apiWebdavProperties-mariadb10.2-php7.1 -- apiWebdavUpload-mariadb10.2-php7.1 -- apiSharingNotifications-mariadb10.2-php7.1 -- apiFederation-master-mariadb10.2-php7.1 -- apiFederation-10.2.1-mariadb10.2-php7.1 -- cliBackground-mariadb10.2-php7.1 -- cliMain-mariadb10.2-php7.1 -- cliProvisioning-mariadb10.2-php7.1 -- cliTrashbin-mariadb10.2-php7.1 -- cliAppManagement-mariadb10.2-php7.1 -- webUIAddUsers-chrome-mariadb10.2-php7.1 -- webUIAdminSettings-chrome-mariadb10.2-php7.1 -- webUIComments-chrome-mariadb10.2-php7.1 -- webUICreateDelete-chrome-mariadb10.2-php7.1 -- webUIFavorites-chrome-mariadb10.2-php7.1 -- webUIFiles-chrome-mariadb10.2-php7.1 -- webUILogin-chrome-mariadb10.2-php7.1 -- webUIManageQuota-chrome-mariadb10.2-php7.1 -- webUIManageUsersGrps-chrome-mariadb10.2-php7.1 -- webUIMoveFilesFolder-chrome-mariadb10.2-php7.1 -- webUIPersonalSetting-chrome-mariadb10.2-php7.1 -- webUIRenameFiles-chrome-mariadb10.2-php7.1 -- webUIRenameFolders-chrome-mariadb10.2-php7.1 -- webUIRestrictSharing-chrome-mariadb10.2-php7.1 -- webUISettingsMenu-chrome-mariadb10.2-php7.1 -- webUISharingAcceptSh-chrome-mariadb10.2-php7.1 -- webUISharingAutocomp-chrome-mariadb10.2-php7.1 -- webUISharingIntGroup-chrome-mariadb10.2-php7.1 -- webUISharingIntUsers-chrome-mariadb10.2-php7.1 -- webUISharingPublic-chrome-mariadb10.2-php7.1 -- webUITags-chrome-mariadb10.2-php7.1 -- webUITrashbin-chrome-mariadb10.2-php7.1 -- webUIUpload-chrome-mariadb10.2-php7.1 -- webUIWebdavLockProt-chrome-mariadb10.2-php7.1 -- webUIWebdavLocks-chrome-mariadb10.2-php7.1 -- webUISharingNotify-chrome-mariadb10.2-php7.1 -- webUISharingExt-master-chrome-mariadb10.2-php7.1 -- webUISharingExt-10.2.1-chrome-mariadb10.2-php7.1 -- webUIFfSmoke-3-1-firefox-mariadb10.2-php7.1 -- webUIFfSmoke-3-2-firefox-mariadb10.2-php7.1 -- webUIFfSmoke-3-3-firefox-mariadb10.2-php7.1 -- webUIProxySmoke-3-1-chrome-mariadb10.2-php7.1 -- webUIProxySmoke-3-2-chrome-mariadb10.2-php7.1 -- webUIProxySmoke-3-3-chrome-mariadb10.2-php7.1 -- apiProxySmoke-3-1-mariadb10.2-php7.1 -- apiProxySmoke-3-2-mariadb10.2-php7.1 -- apiProxySmoke-3-3-mariadb10.2-php7.1 +- phpunit-php7.2-sqlite-samba +- phpunit-php7.2-sqlite-windows +- phpunit-php7.2-sqlite-webdav +- phpunit-php7.2-sqlite-sftp +- phpunit-php7.2-sqlite-scality +- apiAuth-mariadb10.2-php7.2 +- apiAuthOcs-mariadb10.2-php7.2 +- apiCapabilities-mariadb10.2-php7.2 +- apiComments-mariadb10.2-php7.2 +- apiFavorites-mariadb10.2-php7.2 +- apiMain-mariadb10.2-php7.2 +- apiProvisioning-v1-mariadb10.2-php7.2 +- apiProvisioning-v2-mariadb10.2-php7.2 +- apiProvisioningGroups-v1-mariadb10.2-php7.2 +- apiProvisioningGroups-v2-mariadb10.2-php7.2 +- apiSharees-mariadb10.2-php7.2 +- apiShareManagement-mariadb10.2-php7.2 +- apiShareManagementBasic-mariadb10.2-php7.2 +- apiShareOperations-mariadb10.2-php7.2 +- apiShareReshare-mariadb10.2-php7.2 +- apiShareUpdate-mariadb10.2-php7.2 +- apiTags-mariadb10.2-php7.2 +- apiTrashbin-mariadb10.2-php7.2 +- apiVersions-mariadb10.2-php7.2 +- apiWebdavLocks-mariadb10.2-php7.2 +- apiWebdavLocks2-mariadb10.2-php7.2 +- apiWebdavMove-mariadb10.2-php7.2 +- apiWebdavOperations-mariadb10.2-php7.2 +- apiWebdavProperties-mariadb10.2-php7.2 +- apiWebdavUpload-mariadb10.2-php7.2 +- apiSharingNotifications-mariadb10.2-php7.2 +- apiFederation-master-mariadb10.2-php7.2 +- apiFederation-10.2.1-mariadb10.2-php7.2 +- cliBackground-mariadb10.2-php7.2 +- cliMain-mariadb10.2-php7.2 +- cliProvisioning-mariadb10.2-php7.2 +- cliTrashbin-mariadb10.2-php7.2 +- cliAppManagement-mariadb10.2-php7.2 +- webUIAddUsers-chrome-mariadb10.2-php7.2 +- webUIAdminSettings-chrome-mariadb10.2-php7.2 +- webUIComments-chrome-mariadb10.2-php7.2 +- webUICreateDelete-chrome-mariadb10.2-php7.2 +- webUIFavorites-chrome-mariadb10.2-php7.2 +- webUIFiles-chrome-mariadb10.2-php7.2 +- webUILogin-chrome-mariadb10.2-php7.2 +- webUIManageQuota-chrome-mariadb10.2-php7.2 +- webUIManageUsersGrps-chrome-mariadb10.2-php7.2 +- webUIMoveFilesFolder-chrome-mariadb10.2-php7.2 +- webUIPersonalSetting-chrome-mariadb10.2-php7.2 +- webUIRenameFiles-chrome-mariadb10.2-php7.2 +- webUIRenameFolders-chrome-mariadb10.2-php7.2 +- webUIRestrictSharing-chrome-mariadb10.2-php7.2 +- webUISettingsMenu-chrome-mariadb10.2-php7.2 +- webUISharingAcceptSh-chrome-mariadb10.2-php7.2 +- webUISharingAutocomp-chrome-mariadb10.2-php7.2 +- webUISharingIntGroup-chrome-mariadb10.2-php7.2 +- webUISharingIntUsers-chrome-mariadb10.2-php7.2 +- webUISharingPublic-chrome-mariadb10.2-php7.2 +- webUITags-chrome-mariadb10.2-php7.2 +- webUITrashbin-chrome-mariadb10.2-php7.2 +- webUIUpload-chrome-mariadb10.2-php7.2 +- webUIWebdavLockProt-chrome-mariadb10.2-php7.2 +- webUIWebdavLocks-chrome-mariadb10.2-php7.2 +- webUISharingNotify-chrome-mariadb10.2-php7.2 +- webUISharingExt-master-chrome-mariadb10.2-php7.2 +- webUISharingExt-10.2.1-chrome-mariadb10.2-php7.2 +- webUIFfSmoke-3-1-firefox-mariadb10.2-php7.2 +- webUIFfSmoke-3-2-firefox-mariadb10.2-php7.2 +- webUIFfSmoke-3-3-firefox-mariadb10.2-php7.2 +- webUIProxySmoke-3-1-chrome-mariadb10.2-php7.2 +- webUIProxySmoke-3-2-chrome-mariadb10.2-php7.2 +- webUIProxySmoke-3-3-chrome-mariadb10.2-php7.2 +- apiProxySmoke-3-1-mariadb10.2-php7.2 +- apiProxySmoke-3-2-mariadb10.2-php7.2 +- apiProxySmoke-3-3-mariadb10.2-php7.2 ... diff --git a/apps/comments/tests/unit/ActivityListenerTest.php b/apps/comments/tests/unit/ActivityListenerTest.php index 6f81cc1da7d6..f4fd1bffbb09 100644 --- a/apps/comments/tests/unit/ActivityListenerTest.php +++ b/apps/comments/tests/unit/ActivityListenerTest.php @@ -71,7 +71,7 @@ class ActivityListenerTest extends \Test\TestCase { */ private $activityManager; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->activityManager = $this->createMock(IManager::class); diff --git a/apps/comments/tests/unit/Dav/CommentsNodeTest.php b/apps/comments/tests/unit/Dav/CommentsNodeTest.php index 8f866fe08332..37a25f9c24aa 100644 --- a/apps/comments/tests/unit/Dav/CommentsNodeTest.php +++ b/apps/comments/tests/unit/Dav/CommentsNodeTest.php @@ -35,7 +35,7 @@ class CommentsNodeTest extends \Test\TestCase { protected $logger; protected $userSession; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->commentsManager = $this->createMock('\OCP\Comments\ICommentsManager'); @@ -84,9 +84,10 @@ public function testDelete() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteForbidden() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $user = $this->createMock('\OCP\IUser'); $user->expects($this->once()) @@ -124,9 +125,10 @@ public function testGetName() { } /** - * @expectedException \Sabre\DAV\Exception\MethodNotAllowed */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->node->setName('666'); } @@ -167,10 +169,11 @@ public function testUpdateComment() { } /** - * @expectedException Exception - * @expectedExceptionMessage buh! */ public function testUpdateCommentLogException() { + $this->expectException(\Exception::class); + $this->expectExceptionMessage('buh!'); + $msg = null; $user = $this->createMock('\OCP\IUser'); @@ -206,10 +209,11 @@ public function testUpdateCommentLogException() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest - * @expectedExceptionMessage Message exceeds allowed character limit of */ public function testUpdateCommentMessageTooLongException() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->expectExceptionMessage('Message exceeds allowed character limit of'); + $user = $this->createMock('\OCP\IUser'); $user->expects($this->once()) @@ -243,9 +247,10 @@ public function testUpdateCommentMessageTooLongException() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testUpdateForbiddenByUser() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $msg = 'HaXX0r'; $user = $this->createMock('\OCP\IUser'); @@ -276,9 +281,10 @@ public function testUpdateForbiddenByUser() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testUpdateForbiddenByType() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $msg = 'HaXX0r'; $user = $this->createMock('\OCP\IUser'); @@ -304,9 +310,10 @@ public function testUpdateForbiddenByType() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testUpdateForbiddenByNotLoggedIn() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $msg = 'HaXX0r'; $this->userSession->expects($this->once()) diff --git a/apps/comments/tests/unit/Dav/CommentsPluginTest.php b/apps/comments/tests/unit/Dav/CommentsPluginTest.php index 16666f01a484..400720e4523a 100644 --- a/apps/comments/tests/unit/Dav/CommentsPluginTest.php +++ b/apps/comments/tests/unit/Dav/CommentsPluginTest.php @@ -44,7 +44,7 @@ class CommentsPluginTest extends \Test\TestCase { /** @var CommentsPluginImplementation */ private $plugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->tree = $this->getMockBuilder('\Sabre\DAV\Tree') ->disableOriginalConstructor() @@ -155,9 +155,10 @@ public function testCreateComment() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testCreateCommentInvalidObject() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $commentData = [ 'actorType' => 'users', 'verb' => 'comment', @@ -235,9 +236,10 @@ public function testCreateCommentInvalidObject() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest */ public function testCreateCommentInvalidActor() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $commentData = [ 'actorType' => 'robots', 'verb' => 'comment', @@ -321,9 +323,10 @@ public function testCreateCommentInvalidActor() { } /** - * @expectedException \Sabre\DAV\Exception\UnsupportedMediaType */ public function testCreateCommentUnsupportedMediaType() { + $this->expectException(\Sabre\DAV\Exception\UnsupportedMediaType::class); + $commentData = [ 'actorType' => 'users', 'verb' => 'comment', @@ -407,9 +410,10 @@ public function testCreateCommentUnsupportedMediaType() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest */ public function testCreateCommentInvalidPayload() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $commentData = [ 'actorType' => 'users', 'verb' => '', @@ -499,10 +503,11 @@ public function testCreateCommentInvalidPayload() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest - * @expectedExceptionMessage Message exceeds allowed character limit of */ public function testCreateCommentMessageTooLong() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->expectExceptionMessage('Message exceeds allowed character limit of'); + $commentData = [ 'actorType' => 'users', 'verb' => 'comment', @@ -591,9 +596,10 @@ public function testCreateCommentMessageTooLong() { } /** - * @expectedException \Sabre\DAV\Exception\ReportNotSupported */ public function testOnReportInvalidNode() { + $this->expectException(\Sabre\DAV\Exception\ReportNotSupported::class); + $path = 'totally/unrelated/13'; $this->tree->expects($this->any()) @@ -610,9 +616,10 @@ public function testOnReportInvalidNode() { } /** - * @expectedException \Sabre\DAV\Exception\ReportNotSupported */ public function testOnReportInvalidReportName() { + $this->expectException(\Sabre\DAV\Exception\ReportNotSupported::class); + $path = 'comments/files/42'; $this->tree->expects($this->any()) diff --git a/apps/comments/tests/unit/Dav/EntityCollectionTest.php b/apps/comments/tests/unit/Dav/EntityCollectionTest.php index 460283752a47..637a93ddb34d 100644 --- a/apps/comments/tests/unit/Dav/EntityCollectionTest.php +++ b/apps/comments/tests/unit/Dav/EntityCollectionTest.php @@ -46,7 +46,7 @@ class EntityCollectionTest extends \Test\TestCase { /** @var EventDispatcherInterface | \PHPUnit_Framework_MockObject_MockObject */ private $dispatcher; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->commentsManager = $this->createMock(ICommentsManager::class); @@ -81,9 +81,10 @@ public function testGetChild(): void { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetChildException(): void { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->commentsManager->expects($this->once()) ->method('get') ->with('55') diff --git a/apps/comments/tests/unit/Dav/EntityTypeCollectionTest.php b/apps/comments/tests/unit/Dav/EntityTypeCollectionTest.php index cd8c164ce347..ad70bf6cf08a 100644 --- a/apps/comments/tests/unit/Dav/EntityTypeCollectionTest.php +++ b/apps/comments/tests/unit/Dav/EntityTypeCollectionTest.php @@ -48,7 +48,7 @@ class EntityTypeCollectionTest extends \Test\TestCase { /** @var EventDispatcherInterface | \PHPUnit_Framework_MockObject_MockObject */ private $dispatcher; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->commentsManager = $this->createMock(ICommentsManager::class); @@ -89,16 +89,18 @@ public function testGetChild() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetChildException() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->collection->getChild('17'); } /** - * @expectedException \Sabre\DAV\Exception\MethodNotAllowed */ public function testGetChildren() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->collection->getChildren(); } } diff --git a/apps/comments/tests/unit/Dav/RootCollectionTest.php b/apps/comments/tests/unit/Dav/RootCollectionTest.php index 7714a8cbbb40..cba32f419623 100644 --- a/apps/comments/tests/unit/Dav/RootCollectionTest.php +++ b/apps/comments/tests/unit/Dav/RootCollectionTest.php @@ -45,7 +45,7 @@ class RootCollectionTest extends \Test\TestCase { /** @var \OCP\IUser|\PHPUnit\Framework\MockObject\MockObject */ protected $user; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->user = $this->createMock('\OCP\IUser'); @@ -82,16 +82,18 @@ protected function prepareForInitCollections() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testCreateFile() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->collection->createFile('foo'); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testCreateDirectory() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->collection->createDirectory('foo'); } @@ -102,17 +104,19 @@ public function testGetChild() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetChildInvalid() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->prepareForInitCollections(); $this->collection->getChild('robots'); } /** - * @expectedException \Sabre\DAV\Exception\NotAuthenticated */ public function testGetChildNoAuth() { + $this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class); + $this->collection->getChild('files'); } @@ -126,9 +130,10 @@ public function testGetChildren() { } /** - * @expectedException \Sabre\DAV\Exception\NotAuthenticated */ public function testGetChildrenNoAuth() { + $this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class); + $this->collection->getChildren(); } @@ -143,16 +148,18 @@ public function testChildExistsNo() { } /** - * @expectedException \Sabre\DAV\Exception\NotAuthenticated */ public function testChildExistsNoAuth() { + $this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class); + $this->collection->childExists('files'); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDelete() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->collection->delete(); } @@ -161,9 +168,10 @@ public function testGetName() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->collection->setName('foobar'); } diff --git a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php index 202b7293e713..08bfc960b3b1 100644 --- a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php +++ b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php @@ -37,16 +37,17 @@ class AvatarHomeTest extends TestCase { /** @var IAvatarManager | \PHPUnit\Framework\MockObject\MockObject */ private $avatarManager; - public function setUp() { + public function setUp(): void { $this->avatarManager = $this->createMock(IAvatarManager::class); $this->home = new AvatarHome(['uri' => 'principals/users/admin'], $this->avatarManager); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden * @dataProvider providesForbiddenMethods */ public function testForbiddenMethods($method) { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->home->$method(''); } diff --git a/apps/dav/tests/unit/BackgroundJob/CleanPropertiesTest.php b/apps/dav/tests/unit/BackgroundJob/CleanPropertiesTest.php index 121e99351437..39533c73f807 100644 --- a/apps/dav/tests/unit/BackgroundJob/CleanPropertiesTest.php +++ b/apps/dav/tests/unit/BackgroundJob/CleanPropertiesTest.php @@ -44,7 +44,7 @@ class CleanPropertiesTest extends TestCase { /** @var string */ private $username; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->connection = \OC::$server->getDatabaseConnection(); diff --git a/apps/dav/tests/unit/CalDAV/AbstractCalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/AbstractCalDavBackendTest.php index 8a1b52a1c620..136d15763da8 100644 --- a/apps/dav/tests/unit/CalDAV/AbstractCalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/AbstractCalDavBackendTest.php @@ -59,7 +59,7 @@ abstract class AbstractCalDavBackendTest extends TestCase { /** @var ISecureRandom */ private $random; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->principal = $this->getMockBuilder(Principal::class) @@ -83,7 +83,7 @@ public function setUp() { $this->tearDown(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); if ($this->backend === null) { diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index c30942d39755..1bca105e6f35 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -385,7 +385,7 @@ public function testCalendarQuery($expectedEventsInResult, $propFilters, $compFi $expectedEventsInResult = \array_map(function ($index) use ($events) { return $events[$index]; }, $expectedEventsInResult); - $this->assertEquals($expectedEventsInResult, $result, '', 0.0, 10, true); + $this->assertEqualsCanonicalizing($expectedEventsInResult, $result); } /** diff --git a/apps/dav/tests/unit/CalDAV/CalendarTest.php b/apps/dav/tests/unit/CalDAV/CalendarTest.php index 1806a6525512..b554f73d9a57 100644 --- a/apps/dav/tests/unit/CalDAV/CalendarTest.php +++ b/apps/dav/tests/unit/CalDAV/CalendarTest.php @@ -36,7 +36,7 @@ class CalendarTest extends TestCase { /** @var IL10N */ private $l10n; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->l10n = $this->getMockBuilder(IL10N::class) ->disableOriginalConstructor()->getMock(); @@ -66,9 +66,10 @@ public function testDelete() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteFromGroup() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */ $backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock(); $backend->expects($this->never())->method('updateShares'); diff --git a/apps/dav/tests/unit/CalDAV/PluginTest.php b/apps/dav/tests/unit/CalDAV/PluginTest.php index 8e09e34bff28..07f25746c043 100644 --- a/apps/dav/tests/unit/CalDAV/PluginTest.php +++ b/apps/dav/tests/unit/CalDAV/PluginTest.php @@ -14,7 +14,7 @@ class PluginTest extends TestCase { /** @var Plugin */ private $plugin; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->plugin = new Plugin(); diff --git a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php index 7df339e9b707..507a5f5860d0 100644 --- a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php +++ b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php @@ -61,7 +61,7 @@ class PublicCalendarRootTest extends TestCase { /** @var ISecureRandom */ private $random; - public function setUp() { + public function setUp(): void { parent::setUp(); $db = \OC::$server->getDatabaseConnection(); @@ -81,7 +81,7 @@ public function setUp() { ->disableOriginalConstructor()->getMock(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); if ($this->backend === null) { @@ -112,9 +112,10 @@ public function testGetChild() { } /** - * @expectedException \Sabre\DAV\Exception\MethodNotAllowed */ public function testGetChildren() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->createPublicCalendar(); $this->publicCalendarRoot->disableListing = true; diff --git a/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php b/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php index bfde545f33bc..bedd8e88c377 100644 --- a/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php +++ b/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php @@ -44,7 +44,7 @@ class PluginTest extends TestCase { /** @var IURLGenerator | \PHPUnit\Framework\MockObject\MockObject */ private $urlGenerator; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->config = $this->getMockBuilder('\OCP\IConfig')-> diff --git a/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php b/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php index fa891d1d76b6..5d80c576cab6 100644 --- a/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php +++ b/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php @@ -52,7 +52,7 @@ class AddressBookImplTest extends TestCase { /** @var VCard | \PHPUnit\Framework\MockObject\MockObject */ private $vCard; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->addressBookInfo = [ @@ -120,7 +120,7 @@ public function testSearch() { )->willReturn('vCard'); $result = $addressBookImpl->search($pattern, $searchProperties, [], 10, 0); - $this->assertInternalType('array', $result); + $this->assertIsArray($result); $this->assertCount(2, $result); } diff --git a/apps/dav/tests/unit/CardDAV/AddressBookTest.php b/apps/dav/tests/unit/CardDAV/AddressBookTest.php index da7ab6b4232d..e89412ea8cb0 100644 --- a/apps/dav/tests/unit/CardDAV/AddressBookTest.php +++ b/apps/dav/tests/unit/CardDAV/AddressBookTest.php @@ -45,9 +45,10 @@ public function testDelete() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteFromGroup() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + /** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */ $backend = $this->getMockBuilder('OCA\DAV\CardDAV\CardDavBackend')->disableOriginalConstructor()->getMock(); $backend->expects($this->never())->method('updateShares'); @@ -64,9 +65,10 @@ public function testDeleteFromGroup() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testPropPatch() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + /** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */ $backend = $this->getMockBuilder('OCA\DAV\CardDAV\CardDavBackend')->disableOriginalConstructor()->getMock(); $calendarInfo = [ diff --git a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php index f910de092497..b4690e5c87bc 100644 --- a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php +++ b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php @@ -41,7 +41,7 @@ class BirthdayServiceTest extends TestCase { /** @var GroupPrincipalBackend | \PHPUnit\Framework\MockObject\MockObject */ private $groupPrincipalBackend; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->calDav = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock(); diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php index 9dae23bb041a..4b6babc61994 100644 --- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php +++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php @@ -68,7 +68,7 @@ class CardDavBackendTest extends TestCase { const UNIT_TEST_USER1 = 'principals/users/carddav-unit-test1'; const UNIT_TEST_GROUP = 'principals/groups/carddav-unit-test-group'; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->principal = $this->getMockBuilder(Principal::class) @@ -98,7 +98,7 @@ public function setUp() { $this->tearDown(); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); if ($this->backend === null) { @@ -472,9 +472,10 @@ public function testGetCardId() { } /** - * @expectedException InvalidArgumentException */ public function testGetCardIdFailed() { + $this->expectException(\InvalidArgumentException::class); + static::invokePrivate($this->backend, 'getCardId', [1, 'uri']); } @@ -598,9 +599,10 @@ public function testGetCardUri() { } /** - * @expectedException InvalidArgumentException */ public function testGetCardUriFailed() { + $this->expectException(\InvalidArgumentException::class); + $this->backend->getCardUri(1); } diff --git a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php index ebc5f94abb5e..f6e11b92dd81 100644 --- a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php +++ b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php @@ -46,7 +46,7 @@ class ImageExportPluginTest extends TestCase { /** @var ILogger | \PHPUnit\Framework\MockObject\MockObject */ private $logger; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->request = $this->getMockBuilder('Sabre\HTTP\RequestInterface')->getMock(); diff --git a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php index 720522952c02..20a11df8ed8e 100644 --- a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php +++ b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php @@ -41,7 +41,7 @@ class PluginTest extends TestCase { /** @var IShareable | \PHPUnit\Framework\MockObject\MockObject */ private $book; - public function setUp() { + public function setUp(): void { parent::setUp(); /** @var Auth | \PHPUnit\Framework\MockObject\MockObject $authBackend */ diff --git a/apps/dav/tests/unit/Command/CleanupChunksTest.php b/apps/dav/tests/unit/Command/CleanupChunksTest.php index 225ebcef82c1..cc852a888c55 100644 --- a/apps/dav/tests/unit/Command/CleanupChunksTest.php +++ b/apps/dav/tests/unit/Command/CleanupChunksTest.php @@ -42,7 +42,7 @@ class CleanupChunksTest extends TestCase { /** @var IUser */ private $user; - public function setUp() { + public function setUp(): void { parent::setUp(); $command = new CleanupChunks(\OC::$server->getUserManager()); @@ -59,7 +59,10 @@ public function testCommandInput($inputDays, $expectedDays) { 'age-in-days' => $inputDays ]); $output = $this->commandTester->getDisplay(); - $this->assertContains("Cleaning chunks older than $expectedDays days", $output); + $this->assertStringContainsString( + "Cleaning chunks older than $expectedDays days", + $output + ); } public function testCommand() { @@ -77,8 +80,8 @@ public function testCommand() { $this->commandTester->execute([]); $output = $this->commandTester->getDisplay(); - $this->assertContains("Cleaning chunks older than 2 days", $output); - $this->assertContains("Cleaning chunks for $userId", $output); + $this->assertStringContainsString("Cleaning chunks older than 2 days", $output); + $this->assertStringContainsString("Cleaning chunks for $userId", $output); $this->assertFalse($view->file_exists($uploadId)); } diff --git a/apps/dav/tests/unit/Connector/PublicAuthTest.php b/apps/dav/tests/unit/Connector/PublicAuthTest.php index 5040b05f0c66..e26dba5c6509 100644 --- a/apps/dav/tests/unit/Connector/PublicAuthTest.php +++ b/apps/dav/tests/unit/Connector/PublicAuthTest.php @@ -49,7 +49,7 @@ class PublicAuthTest extends \Test\TestCase { /** @var string */ private $oldUser; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->session = $this->createMock('\OCP\ISession'); @@ -66,7 +66,7 @@ protected function setUp() { $this->oldUser = \OC_User::getUser(); } - protected function tearDown() { + protected function tearDown(): void { \OC_User::setIncognitoMode(false); // Set old user diff --git a/apps/dav/tests/unit/Connector/Sabre/AuthTest.php b/apps/dav/tests/unit/Connector/Sabre/AuthTest.php index 0b186f2f0096..4679682aacfd 100644 --- a/apps/dav/tests/unit/Connector/Sabre/AuthTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/AuthTest.php @@ -62,7 +62,7 @@ class AuthTest extends TestCase { /** @var AccountModuleManager | MockObject */ private $accountModuleManager; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->session = $this->createMock(ISession::class); $this->userSession = $this->createMock(Session::class); @@ -228,9 +228,10 @@ public function testValidateUserPassWithInvalidPassword() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden */ public function testValidateUserPassWithPasswordLoginForbidden() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden::class); + $this->userSession ->expects($this->once()) ->method('isLoggedIn') @@ -332,10 +333,11 @@ public function testAuthenticateAlreadyLoggedInWithoutCsrfTokenAndCorrectlyDavAu } /** - * @expectedException \Sabre\DAV\Exception\NotAuthenticated - * @expectedExceptionMessage 2FA challenge not passed. */ public function testAuthenticateAlreadyLoggedInWithoutTwoFactorChallengePassed() { + $this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class); + $this->expectExceptionMessage('2FA challenge not passed.'); + /** @var RequestInterface | MockObject $request */ $request = $this->getMockBuilder(RequestInterface::class) ->disableOriginalConstructor() @@ -493,9 +495,10 @@ public function testAuthenticateAlreadyLoggedInWithCsrfTokenForGet() { } /** - * @expectedException \Sabre\DAV\Exception\NotAuthenticated */ public function testAutenticateWithLoggedInUserButLoginExceptionThrown() { + $this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class); + /** @var RequestInterface | MockObject $request */ $request = $this->getMockBuilder(RequestInterface::class) ->disableOriginalConstructor() diff --git a/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php index 1051867640d0..1e7f9932703b 100644 --- a/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php @@ -39,7 +39,7 @@ class BlockLegacyClientPluginTest extends TestCase { /** @var BlockLegacyClientPlugin */ private $blockLegacyClientVersionPlugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->config = $this->createMock('\OCP\IConfig'); @@ -62,10 +62,11 @@ public function oldDesktopClientProvider() { /** * @dataProvider oldDesktopClientProvider * @param string $userAgent - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Unsupported client version. */ public function testBeforeHandlerException($userAgent) { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Unsupported client version.'); + /** @var \Sabre\HTTP\RequestInterface | PHPUnit\Framework\MockObject\MockObject $request */ $request = $this->createMock('\Sabre\HTTP\RequestInterface'); $request diff --git a/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php index 8e20020030b1..ee8d65b19d49 100644 --- a/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/CommentsPropertiesPluginTest.php @@ -34,7 +34,7 @@ class CommentsPropertiesPluginTest extends \Test\TestCase { protected $server; protected $userFolder; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->commentsManager = $this->createMock('\OCP\Comments\ICommentsManager'); diff --git a/apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php index 6728c802c564..b9bb2f595004 100644 --- a/apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/CopyEtagHeaderPluginTest.php @@ -42,7 +42,7 @@ class CopyEtagHeaderPluginTest extends TestCase { /** @var Server */ private $server; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new \Sabre\DAV\Server(); $this->plugin = new CopyEtagHeaderPlugin(); diff --git a/apps/dav/tests/unit/Connector/Sabre/CorsPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/CorsPluginTest.php index fd22d7931be6..5af1bb31fb6a 100644 --- a/apps/dav/tests/unit/Connector/Sabre/CorsPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/CorsPluginTest.php @@ -52,7 +52,7 @@ class CorsPluginTest extends TestCase { */ private $config; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new Server(); @@ -79,7 +79,7 @@ public function setUp() { $this->server->addPlugin($extraMethodPlugin); } - public function tearDown() { + public function tearDown(): void { $this->restoreService('AllConfig'); } diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index 1459e6f6403a..6900f4a5ad58 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php @@ -75,7 +75,7 @@ class DirectoryTest extends \Test\TestCase { /** @var \OC\Files\FileInfo | \PHPUnit\Framework\MockObject\MockObject */ private $info; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->view = $this->createMock('OC\Files\View', [], [], '', false); @@ -115,9 +115,10 @@ public function testChildExists($exists) { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable */ public function testChildExistsStorageNotAvailable() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $this->view->method('file_exists') ->will($this->throwException(new StorageNotAvailableException())); $dir = $this->getDir(); @@ -125,9 +126,10 @@ public function testChildExistsStorageNotAvailable() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteRootFolderFails() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->info->expects($this->any()) ->method('isDeletable') ->will($this->returnValue(true)); @@ -138,9 +140,10 @@ public function testDeleteRootFolderFails() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testDeleteForbidden() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + // deletion allowed $this->info->expects($this->once()) ->method('isDeletable') @@ -176,9 +179,10 @@ public function testDeleteFolderWhenAllowed() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteFolderFailsWhenNotAllowed() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->info->expects($this->once()) ->method('isDeletable') ->will($this->returnValue(false)); @@ -188,9 +192,10 @@ public function testDeleteFolderFailsWhenNotAllowed() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteFolderThrowsWhenDeletionFailed() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + // deletion allowed $this->info->expects($this->once()) ->method('isDeletable') @@ -207,9 +212,10 @@ public function testDeleteFolderThrowsWhenDeletionFailed() { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable */ public function testDeleteFolderThrowsWhenStorageNotAvailable() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + // deletion allowed $this->info->expects($this->once()) ->method('isDeletable') @@ -265,9 +271,10 @@ public function testGetChildren() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testGetChildrenNoPermission() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $info = $this->getMockBuilder('OC\Files\FileInfo') ->disableOriginalConstructor() ->getMock(); @@ -280,9 +287,10 @@ public function testGetChildrenNoPermission() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetChildNoPermission() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $info = $this->getMockBuilder('OC\Files\FileInfo') ->disableOriginalConstructor() ->getMock(); @@ -295,9 +303,10 @@ public function testGetChildNoPermission() { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable */ public function testGetChildThrowStorageNotAvailableException() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $this->view->expects($this->once()) ->method('getFileInfo') ->willThrowException(new StorageNotAvailableException()); @@ -307,9 +316,10 @@ public function testGetChildThrowStorageNotAvailableException() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\InvalidPath */ public function testGetChildThrowInvalidPath() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\InvalidPath::class); + $this->view->expects($this->once()) ->method('verifyPath') ->willThrowException(new \OCP\Files\InvalidPathException()); @@ -385,9 +395,10 @@ public function testGetQuotaInfoSpecific() { /** * @dataProvider moveFailedProvider - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testMoveFailed($source, $destination, $updatables, $deletables) { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->moveTest($source, $destination, $updatables, $deletables); } @@ -401,9 +412,10 @@ public function testMoveSuccess($source, $destination, $updatables, $deletables) /** * @dataProvider moveFailedInvalidCharsProvider - * @expectedException \OCA\DAV\Connector\Sabre\Exception\InvalidPath */ public function testMoveFailedInvalidChars($source, $destination, $updatables, $deletables) { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\InvalidPath::class); + $this->moveTest($source, $destination, $updatables, $deletables); } @@ -455,10 +467,11 @@ private function moveTest($source, $destination, $updatables, $deletables) { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Could not copy directory b, target exists */ public function testFailingMove() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Could not copy directory b, target exists'); + $source = 'a/b'; $destination = 'c/b'; $updatables = ['a' => true, 'a/b' => true, 'b' => true, 'c/b' => false]; @@ -484,10 +497,11 @@ public function testFailingMove() { /** * A test to throw ExcludeForbiddenException * - * @expectedException \OCP\Files\FileContentNotAllowedException - * @expectedExceptionMessage The message already logged */ public function testFailCreateFile() { + $this->expectException(\OCP\Files\FileContentNotAllowedException::class); + $this->expectExceptionMessage('The message already logged'); + //$this->invokePrivate(); $previous = new FileContentNotAllowedException('The message already logged', false); $this->view->expects($this->any()) @@ -498,9 +512,10 @@ public function testFailCreateFile() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testCreateFileForbidden() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->view->expects($this->any()) ->method('isCreatable') ->willThrowException(new \Sabre\DAV\Exception\Forbidden()); @@ -509,9 +524,10 @@ public function testCreateFileForbidden() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testSetNameRenameOperationFailed() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $storage = $this->createMock(IStorage::class); $storage->method('getId')->will($this->returnValue('home::someuser')); diff --git a/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php b/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php index df5403bc595d..bbddea9db928 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php @@ -35,7 +35,7 @@ class DummyGetResponsePluginTest extends TestCase { /** @var DummyGetResponsePlugin */ private $dummyGetResponsePlugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->dummyGetResponsePlugin = new DummyGetResponsePlugin(); diff --git a/apps/dav/tests/unit/Connector/Sabre/FileTest.php b/apps/dav/tests/unit/Connector/Sabre/FileTest.php index f5c657a736b2..a98f6d2e0c75 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FileTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FileTest.php @@ -69,7 +69,7 @@ class FileTest extends TestCase { /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */ protected $config; - public function setUp() { + public function setUp(): void { parent::setUp(); unset($_SERVER['HTTP_OC_CHUNKED'], $_SERVER['CONTENT_LENGTH'], $_SERVER['REQUEST_METHOD']); @@ -84,7 +84,7 @@ public function setUp() { $this->config = $this->getMockBuilder('\OCP\IConfig')->getMock(); } - public function tearDown() { + public function tearDown(): void { $userManager = \OC::$server->getUserManager(); if ($userManager->userExists($this->user)) { $userManager->get($this->user)->delete(); @@ -236,11 +236,12 @@ function ($path) use ($storage) { * Test that FileContentNotAllowedException properly mapped to * ForbiddenException * - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden * * @return void */ public function testFileContentNotAllowedConvertedToForbidden() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $storage = $this->getMockBuilder(Local::class) ->setMethods(['fopen']) ->setConstructorArgs( @@ -478,9 +479,10 @@ public function testPutSingleFile() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest */ public function testPutSingleFileWrongChecksum() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $request = new \OC\AppFramework\Http\Request([ 'server' => [ 'HTTP_OC_CHECKSUM' => '00000000000000', @@ -491,9 +493,10 @@ public function testPutSingleFileWrongChecksum() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest */ public function testChunkedPutFileWrongChecksum() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $request = new \OC\AppFramework\Http\Request([ 'server' => [ 'HTTP_OC_CHECKSUM' => '000000000000', @@ -1018,9 +1021,10 @@ public function testSimplePutInvalidChars() { /** * Test setting name with setName() with invalid chars * - * @expectedException \OCA\DAV\Connector\Sabre\Exception\InvalidPath */ public function testSetNameInvalidChars() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\InvalidPath::class); + // setup $view = $this->getMockBuilder(View::class) ->setMethods(['getRelativePath']) @@ -1038,9 +1042,10 @@ public function testSetNameInvalidChars() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testSetNameRenameOperationFailed() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $view = $this->createMock(View::class); $view->method('verifyPath')->willReturn(true); $view->method('getRelativePath')->will($this->returnArgument(0)); @@ -1120,9 +1125,10 @@ public function testDeleteWhenAllowed() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteThrowsWhenDeletionNotAllowed() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + // setup $view = $this->createMock(View::class); @@ -1137,9 +1143,10 @@ public function testDeleteThrowsWhenDeletionNotAllowed() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testDeleteThrowsWhenDeletionFailed() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + // setup $view = $this->createMock(View::class); @@ -1159,9 +1166,10 @@ public function testDeleteThrowsWhenDeletionFailed() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testDeleteThrowsWhenDeletionThrows() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + // setup $view = $this->createMock(View::class); @@ -1396,9 +1404,10 @@ private function getFileInfos($path = '', View $userView = null) { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable */ public function testGetFopenFails() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $view = $this->getMockBuilder(View::class) ->setMethods(['fopen', 'file_exists']) ->getMock(); @@ -1419,9 +1428,10 @@ public function testGetFopenFails() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testGetFopenThrows() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $view = $this->getMockBuilder(View::class) ->setMethods(['fopen', 'file_exists']) ->getMock(); @@ -1442,10 +1452,11 @@ public function testGetFopenThrows() { } /** - * @expectedException \Sabre\Dav\Exception\Forbidden - * @expectedExceptionMessage Encryption not ready */ public function testFopenForbiddenExceptionEncryption() { + $this->expectException(\Sabre\Dav\Exception\Forbidden::class); + $this->expectExceptionMessage('Encryption not ready'); + $view = $this->getMockBuilder(View::class) ->setMethods(['fopen', 'file_exists']) ->getMock(); @@ -1466,9 +1477,10 @@ public function testFopenForbiddenExceptionEncryption() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetThrowsIfNoPermission() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $view = $this->getMockBuilder(View::class) ->setMethods(['fopen']) ->getMock(); @@ -1485,9 +1497,10 @@ public function testGetThrowsIfNoPermission() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetThrowsIfFileNotExists() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $view = $this->getMockBuilder(View::class) ->setMethods(['fopen', 'file_exists']) ->getMock(); @@ -1507,9 +1520,10 @@ public function testGetThrowsIfFileNotExists() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetThrowsIfNoPermissionsAndFileNotExists() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $view = $this->getMockBuilder(View::class) ->setMethods(['fopen', 'file_exists']) ->getMock(); diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php index a668de333575..c9fc122c7185 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php @@ -87,7 +87,7 @@ class FilesPluginTest extends TestCase { */ private $request; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = $this->getMockBuilder(Server::class) ->disableOriginalConstructor() @@ -342,9 +342,10 @@ public function testGetPropertiesForRootDirectory() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetPropertiesWhenNoPermission() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + /** @var Directory | \PHPUnit\Framework\MockObject\MockObject $node */ $node = $this->getMockBuilder(Directory::class) ->disableOriginalConstructor() @@ -446,10 +447,11 @@ public function testUpdatePropsForbidden() { * FolderA is an incoming shared folder and there are no delete permissions. * Thus moving /FolderA/test.txt to /test.txt should fail already on that check * - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage FolderA/test.txt cannot be deleted */ public function testMoveSrcNotDeletable() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('FolderA/test.txt cannot be deleted'); + $fileInfoFolderATestTXT = $this->getMockBuilder(FileInfo::class) ->disableOriginalConstructor() ->getMock(); @@ -488,10 +490,11 @@ public function testMoveSrcDeletable() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound - * @expectedExceptionMessage FolderA/test.txt does not exist */ public function testMoveSrcNotExist() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->expectExceptionMessage('FolderA/test.txt does not exist'); + $node = $this->createMock(Node::class); $node->expects($this->once()) ->method('getFileInfo') diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php index 1271ceaf6a9e..f727fd28d1e8 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php @@ -66,7 +66,7 @@ class FilesReportPluginTest extends \Test\TestCase { /** @var Folder|\PHPUnit\Framework\MockObject\MockObject **/ private $userFolder; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->tree = $this->getMockBuilder('\Sabre\DAV\Tree') ->disableOriginalConstructor() @@ -594,9 +594,10 @@ public function testProcessFilterRulesInvisibleTagAsAdmin() { } /** - * @expectedException \OCP\SystemTag\TagNotFoundException */ public function testProcessFilterRulesInvisibleTagAsUser() { + $this->expectException(\OCP\SystemTag\TagNotFoundException::class); + $this->groupManager->expects($this->any()) ->method('isAdmin') ->will($this->returnValue(false)); diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesSearchReportPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesSearchReportPluginTest.php index bdeb571d34ab..a51796c112a1 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FilesSearchReportPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FilesSearchReportPluginTest.php @@ -45,7 +45,7 @@ class FilesSearchReportPluginTest extends \Test\TestCase { /** @var FilesSearchReportPlugin|\PHPUnit\Framework\MockObject\MockObject */ private $plugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->tree = $this->getMockBuilder(Tree::class) @@ -107,9 +107,10 @@ public function testOnReportWrongReportName() { } /** - * @expectedException \Sabre\DAV\Exception\NotImplemented */ public function testOnReportNotRoot() { + $this->expectException(\Sabre\DAV\Exception\NotImplemented::class); + $base = '/remote.php/dav/files/user'; $nodePath = '/totally/unrelated/13'; $path = "{$base}{$nodePath}"; @@ -136,9 +137,10 @@ public function onReportNoSearchPatternProvider() { /** * @dataProvider onReportNoSearchPatternProvider - * @expectedException \Sabre\DAV\Exception\BadRequest */ public function testOnReportNoSearchPattern($properties, $searchInfo) { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $base = '/remote.php/dav/files/user'; $nodePath = '/'; $path = "{$base}{$nodePath}"; diff --git a/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php b/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php index 9efaf5edc0ad..48fc418794ed 100644 --- a/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php @@ -37,7 +37,7 @@ class MaintenancePluginTest extends TestCase { /** @var MaintenancePlugin */ private $maintenancePlugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->config = $this->createMock('\OCP\IConfig'); @@ -45,10 +45,11 @@ public function setUp() { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable - * @expectedExceptionMessage System in single user mode. */ public function testSingleUserMode() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $this->expectExceptionMessage('System in single user mode.'); + $this->config ->expects($this->once()) ->method('getSystemValue') @@ -59,10 +60,11 @@ public function testSingleUserMode() { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable - * @expectedExceptionMessage System in single user mode. */ public function testMaintenanceMode() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $this->expectExceptionMessage('System in single user mode.'); + $this->config ->expects($this->exactly(1)) ->method('getSystemValue') diff --git a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php index 671893acee3e..392dc8077176 100644 --- a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php @@ -91,9 +91,10 @@ public function testCopy($sourcePath, $targetPath, $targetParent) { /** * @dataProvider copyDataProvider - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testCopyFailNotCreatable($sourcePath, $targetPath, $targetParent) { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $view = $this->createMock(View::class); $view->expects($this->once()) ->method('verifyPath') @@ -244,9 +245,10 @@ public function nodeForPathProvider() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\InvalidPath */ public function testGetNodeForPathInvalidPath() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\InvalidPath::class); + $path = '/foo\bar'; $storage = new Temporary([]); diff --git a/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php b/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php index 77aca9282ef0..062f316324ec 100644 --- a/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php @@ -37,7 +37,7 @@ class PrincipalTest extends TestCase { /** @var IGroupManager | \PHPUnit\Framework\MockObject\MockObject */ private $groupManager; - public function setUp() { + public function setUp(): void { $this->userManager = $this->getMockBuilder('\OCP\IUserManager') ->disableOriginalConstructor()->getMock(); $this->groupManager = $this->getMockBuilder('\OCP\IGroupManager') @@ -187,10 +187,11 @@ public function testGetGroupMemberSet() { } /** - * @expectedException \Sabre\DAV\Exception - * @expectedExceptionMessage Principal not found */ public function testGetGroupMemberSetEmpty() { + $this->expectException(\Sabre\DAV\Exception::class); + $this->expectExceptionMessage('Principal not found'); + $this->userManager ->expects($this->once()) ->method('get') @@ -228,10 +229,11 @@ public function testGetGroupMembership() { } /** - * @expectedException \Sabre\DAV\Exception - * @expectedExceptionMessage Principal not found */ public function testGetGroupMembershipEmpty() { + $this->expectException(\Sabre\DAV\Exception::class); + $this->expectExceptionMessage('Principal not found'); + $this->userManager ->expects($this->once()) ->method('get') @@ -242,10 +244,11 @@ public function testGetGroupMembershipEmpty() { } /** - * @expectedException \Sabre\DAV\Exception - * @expectedExceptionMessage Setting members of the group is not supported yet */ public function testSetGroupMembership() { + $this->expectException(\Sabre\DAV\Exception::class); + $this->expectExceptionMessage('Setting members of the group is not supported yet'); + $this->connector->setGroupMemberSet('principals/users/foo', ['foo']); } diff --git a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php index 380422063ad6..199175b96d19 100644 --- a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php @@ -81,10 +81,11 @@ public function testCheckQuota($quota, $headers) { } /** - * @expectedException \Sabre\DAV\Exception\InsufficientStorage * @dataProvider quotaExceededProvider */ public function testCheckExceededQuota($quota, $headers) { + $this->expectException(\Sabre\DAV\Exception\InsufficientStorage::class); + $this->init($quota); $this->plugin->expects($this->never()) ->method('getFileChunking'); @@ -212,9 +213,10 @@ public function quotaChunkedFailProvider() { /** * @dataProvider quotaChunkedFailProvider - * @expectedException \Sabre\DAV\Exception\InsufficientStorage */ public function testCheckQuotaChunkedFail($quota, $chunkTotalSize, $headers) { + $this->expectException(\Sabre\DAV\Exception\InsufficientStorage::class); + $this->init($quota, 'sub/test.txt'); $mockChunking = $this->getMockBuilder(\OC_FileChunking::class) diff --git a/apps/dav/tests/unit/Connector/Sabre/RequestTest/DownloadTest.php b/apps/dav/tests/unit/Connector/Sabre/RequestTest/DownloadTest.php index b82d991a0b9b..c618712e36fe 100644 --- a/apps/dav/tests/unit/Connector/Sabre/RequestTest/DownloadTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/RequestTest/DownloadTest.php @@ -46,9 +46,10 @@ public function testDownload() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked */ public function testDownloadWriteLocked() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\FileLocked::class); + $user = $this->getUniqueID(); $view = $this->setupUser($user, 'pass'); diff --git a/apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php b/apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php index 556b55558215..24400afd69cb 100644 --- a/apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/RequestTest/PartFileInRootUploadTest.php @@ -33,18 +33,18 @@ class PartFileInRootUploadTest extends UploadTest { protected $original; - protected function setUp() { + protected function setUp(): void { $config = \OC::$server->getConfig(); $this->original = $config->getSystemValue('part_file_in_storage', null); $config->setSystemValue('part_file_in_storage', false); parent::setUp(); } - protected function tearDown() { + protected function tearDown(): void { if ($this->original !== null) { $config = \OC::$server->getConfig(); $this->original = $config->setSystemValue('part_file_in_storage', $this->original); } - return parent::tearDown(); + parent::tearDown(); } } diff --git a/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php b/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php index 987525050f2a..bbcef1089ec3 100644 --- a/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTest.php @@ -50,7 +50,7 @@ protected function getStream($string) { return $stream; } - protected function setUp() { + protected function setUp(): void { parent::setUp(); unset($_SERVER['HTTP_OC_CHUNKED']); diff --git a/apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php b/apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php index 1d9f34b3400e..7dbba1b6c569 100644 --- a/apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/RequestTest/UploadTest.php @@ -67,9 +67,10 @@ public function testUploadOverWrite() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked */ public function testUploadOverWriteReadLocked() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\FileLocked::class); + $user = $this->getUniqueID(); $view = $this->setupUser($user, 'pass'); @@ -81,9 +82,10 @@ public function testUploadOverWriteReadLocked() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked */ public function testUploadOverWriteWriteLocked() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\FileLocked::class); + $user = $this->getUniqueID(); $view = $this->setupUser($user, 'pass'); $this->loginAsUser($user); @@ -161,9 +163,10 @@ public function testChunkedUploadOutOfOrder() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked */ public function testChunkedUploadOutOfOrderReadLocked() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\FileLocked::class); + $user = $this->getUniqueID(); $view = $this->setupUser($user, 'pass'); @@ -186,9 +189,10 @@ public function testChunkedUploadOutOfOrderReadLocked() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked */ public function testChunkedUploadOutOfOrderWriteLocked() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\FileLocked::class); + $user = $this->getUniqueID(); $view = $this->setupUser($user, 'pass'); diff --git a/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php index 8e5bfc301d24..82dee09b59cc 100644 --- a/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/SharesPluginTest.php @@ -52,7 +52,7 @@ class SharesPluginTest extends \Test\TestCase { */ private $plugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new \Sabre\DAV\Server(); $this->tree = $this->getMockBuilder('\Sabre\DAV\Tree') diff --git a/apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php index 01d7319d5295..d2b3d8f46726 100644 --- a/apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/TagsPluginTest.php @@ -58,7 +58,7 @@ class TagsPluginTest extends \Test\TestCase { */ private $plugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new \Sabre\DAV\Server(); $this->tree = $this->getMockBuilder('\Sabre\DAV\Tree') diff --git a/apps/dav/tests/unit/Connector/Sabre/ValidateRequestPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/ValidateRequestPluginTest.php index 2fc5f6333d23..d3703e8a1328 100644 --- a/apps/dav/tests/unit/Connector/Sabre/ValidateRequestPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/ValidateRequestPluginTest.php @@ -36,17 +36,18 @@ class ValidateRequestPluginTest extends TestCase { /** @var ValidateRequestPlugin */ private $plugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new \Sabre\DAV\Server(); } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable - * @expectedExceptionMessage Specified header (HTTP_OC_CHUNKED/OC-Chunked header) is allowed only in webdav endpoint */ public function testOldChunkingInNewEndpoint1() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $this->expectExceptionMessage('Specified header (HTTP_OC_CHUNKED/OC-Chunked header) is allowed only in webdav endpoint'); + $headers['HTTP_OC_CHUNKED'] = 1; $this->plugin = new ValidateRequestPlugin('dav'); @@ -57,10 +58,11 @@ public function testOldChunkingInNewEndpoint1() { } /** - * @expectedException \Sabre\DAV\Exception\ServiceUnavailable - * @expectedExceptionMessage Specified header (HTTP_OC_CHUNKED/OC-Chunked header) is allowed only in webdav endpoint */ public function testOldChunkingInNewEndpoint2() { + $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); + $this->expectExceptionMessage('Specified header (HTTP_OC_CHUNKED/OC-Chunked header) is allowed only in webdav endpoint'); + $headers['OC-Chunked'] = 1; $this->plugin = new ValidateRequestPlugin('dav'); diff --git a/apps/dav/tests/unit/DAV/CopyPluginTest.php b/apps/dav/tests/unit/DAV/CopyPluginTest.php index baf62c9ff29d..f5fcb2b4818d 100644 --- a/apps/dav/tests/unit/DAV/CopyPluginTest.php +++ b/apps/dav/tests/unit/DAV/CopyPluginTest.php @@ -48,7 +48,7 @@ class CopyPluginTest extends TestCase { /** @var ResponseInterface | \PHPUnit\Framework\MockObject\MockObject */ private $response; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->plugin = new CopyPlugin(); @@ -119,10 +119,11 @@ public function testCopyPluginReturnFalse() { } /** - * @expectedException OCA\DAV\Connector\Sabre\Exception\Forbidden - * @expectedExceptionMessage Test exception */ public function testCopyPluginRethrowForbidden() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $this->expectExceptionMessage('Test exception'); + $destinationNode = $this->createMock(File::class); $sourceNode = $this->createMock([ICopySource::class, IFile::class]); diff --git a/apps/dav/tests/unit/DAV/FileCustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/FileCustomPropertiesBackendTest.php index 4467499f5295..693a47253964 100644 --- a/apps/dav/tests/unit/DAV/FileCustomPropertiesBackendTest.php +++ b/apps/dav/tests/unit/DAV/FileCustomPropertiesBackendTest.php @@ -79,7 +79,7 @@ class FileCustomPropertiesBackendTest extends \Test\TestCase { /** @var int */ private $maxId; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new \Sabre\DAV\Server(); $this->tree = $this->getMockBuilder(Tree::class) @@ -112,7 +112,7 @@ public function setUp() { ->execute()->fetchColumn(); } - public function tearDown() { + public function tearDown(): void { $connection = \OC::$server->getDatabaseConnection(); $deleteStatement = $connection->prepare( 'DELETE FROM `*PREFIX*properties`' . diff --git a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php index e8efede071d3..86b83c771a2e 100644 --- a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php +++ b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php @@ -36,7 +36,7 @@ class GroupPrincipalTest extends \Test\TestCase { /** @var GroupPrincipalBackend */ private $connector; - public function setUp() { + public function setUp(): void { $this->groupManager = $this->getMockBuilder(IGroupManager::class) ->disableOriginalConstructor()->getMock(); @@ -137,10 +137,11 @@ public function testGetGroupMembership() { } /** - * @expectedException \Sabre\DAV\Exception - * @expectedExceptionMessage Setting members of the group is not supported yet */ public function testSetGroupMembership() { + $this->expectException(\Sabre\DAV\Exception::class); + $this->expectExceptionMessage('Setting members of the group is not supported yet'); + $this->connector->setGroupMemberSet('principals/groups/foo', ['foo']); } diff --git a/apps/dav/tests/unit/DAV/HookManagerTest.php b/apps/dav/tests/unit/DAV/HookManagerTest.php index d55bac0a5457..a65aa9b852ec 100644 --- a/apps/dav/tests/unit/DAV/HookManagerTest.php +++ b/apps/dav/tests/unit/DAV/HookManagerTest.php @@ -38,7 +38,7 @@ class HookManagerTest extends TestCase { /** @var L10N */ private $l10n; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->l10n = $this->getMockBuilder('OC\L10N\L10N') diff --git a/apps/dav/tests/unit/DAV/LazyOpsPluginTest.php b/apps/dav/tests/unit/DAV/LazyOpsPluginTest.php index 037360c6dc80..628a3a53df88 100644 --- a/apps/dav/tests/unit/DAV/LazyOpsPluginTest.php +++ b/apps/dav/tests/unit/DAV/LazyOpsPluginTest.php @@ -50,7 +50,7 @@ class LazyOpsPluginTest extends TestCase { /** @var IUserSession | \PHPUnit\Framework\MockObject\MockObject */ private $userSession; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->userSession = $this->createMock(IUserSession::class); diff --git a/apps/dav/tests/unit/DAV/LockPluginTest.php b/apps/dav/tests/unit/DAV/LockPluginTest.php index 68dfdb19b9f1..ea1dea9e2808 100644 --- a/apps/dav/tests/unit/DAV/LockPluginTest.php +++ b/apps/dav/tests/unit/DAV/LockPluginTest.php @@ -51,7 +51,7 @@ class LockPluginTest extends TestCase { /** @var IUserSession | \PHPUnit\Framework\MockObject\MockObject */ private $userSession; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->plugin = new LockPlugin(); @@ -67,16 +67,17 @@ public function setUp() { $this->overwriteService('UserSession', $this->userSession); } - protected function tearDown() { + protected function tearDown(): void { parent::tearDown(); $this->restoreService('UserSession'); $this->restoreService(LockMapper::class); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testBeforeUnlock() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $lock = new LockInfo(); $lock->token = '123-456-789'; diff --git a/apps/dav/tests/unit/DAV/MiscCustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/MiscCustomPropertiesBackendTest.php index 250ef0e60236..4a3b8675438a 100644 --- a/apps/dav/tests/unit/DAV/MiscCustomPropertiesBackendTest.php +++ b/apps/dav/tests/unit/DAV/MiscCustomPropertiesBackendTest.php @@ -59,7 +59,7 @@ class MiscCustomPropertiesBackendTest extends \Test\TestCase { /** @var int */ private $maxId; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = new \Sabre\DAV\Server(); $this->tree = $this->getMockBuilder('\Sabre\DAV\Tree') @@ -90,7 +90,7 @@ public function setUp() { ->execute()->fetchColumn(); } - public function tearDown() { + public function tearDown(): void { $connection = \OC::$server->getDatabaseConnection(); $deleteStatement = $connection->prepare( 'DELETE FROM `*PREFIX*dav_properties`' . diff --git a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php index f5d13888b03b..36630f874b48 100644 --- a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php +++ b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php @@ -41,7 +41,7 @@ class PluginTest extends TestCase { /** @var IShareable | \PHPUnit\Framework\MockObject\MockObject */ private $book; - public function setUp() { + public function setUp(): void { parent::setUp(); /** @var Auth | \PHPUnit\Framework\MockObject\MockObject $authBackend */ diff --git a/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php b/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php index d6960805ec56..c472df108598 100644 --- a/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php +++ b/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php @@ -79,13 +79,14 @@ public function providesPath() { /** * @dataProvider providesPrincipalForGetGroupMemberSet - * @expectedException \Sabre\DAV\Exception - * @expectedExceptionMessage Principal not found * * @param string $principal * @throws \Sabre\DAV\Exception */ public function testGetGroupMemberSetExceptional($principal) { + $this->expectException(\Sabre\DAV\Exception::class); + $this->expectExceptionMessage('Principal not found'); + $backend = new SystemPrincipalBackend(); $backend->getGroupMemberSet($principal); } @@ -108,13 +109,14 @@ public function testGetGroupMemberSet() { /** * @dataProvider providesPrincipalForGetGroupMembership - * @expectedException \Sabre\DAV\Exception - * @expectedExceptionMessage Principal not found * * @param string $principal * @throws \Sabre\DAV\Exception */ public function testGetGroupMembershipExceptional($principal) { + $this->expectException(\Sabre\DAV\Exception::class); + $this->expectExceptionMessage('Principal not found'); + $backend = new SystemPrincipalBackend(); $backend->getGroupMembership($principal); } diff --git a/apps/dav/tests/unit/DAV/ViewOnlyPluginTest.php b/apps/dav/tests/unit/DAV/ViewOnlyPluginTest.php index 577935be7b07..22ec2d64c208 100644 --- a/apps/dav/tests/unit/DAV/ViewOnlyPluginTest.php +++ b/apps/dav/tests/unit/DAV/ViewOnlyPluginTest.php @@ -43,7 +43,7 @@ class ViewOnlyPluginTest extends TestCase { /** @var RequestInterface | \PHPUnit\Framework\MockObject\MockObject */ private $request; - public function setUp() { + public function setUp(): void { $this->plugin = new ViewOnlyPlugin( $this->createMock(ILogger::class) ); diff --git a/apps/dav/tests/unit/Files/FileLocksBackendTest.php b/apps/dav/tests/unit/Files/FileLocksBackendTest.php index 7cecd6ada7f7..1f1e028e4cfa 100644 --- a/apps/dav/tests/unit/Files/FileLocksBackendTest.php +++ b/apps/dav/tests/unit/Files/FileLocksBackendTest.php @@ -49,7 +49,7 @@ class FileLocksBackendTest extends TestCase { /** @var IPersistentLockingStorage | IStorage | \PHPUnit\Framework\MockObject\MockObject */ private $storageOfFileToBeLocked; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->storageOfFileToBeLocked = $this->createMock([IPersistentLockingStorage::class, IStorage::class]); @@ -315,9 +315,10 @@ public function testLock() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testLockPublic() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $lockInfo = new LockInfo(); $lockInfo->token = '123-456-7890'; $lockInfo->scope = LockInfo::SHARED; @@ -337,9 +338,10 @@ public function testLockPublic() { } /** - * @expectedException \OCA\DAV\Connector\Sabre\Exception\Forbidden */ public function testUnlockPublic() { + $this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class); + $lockInfo = new LockInfo(); $lockInfo->token = '123-456-7890'; $lockInfo->scope = LockInfo::SHARED; diff --git a/apps/dav/tests/unit/Files/FilesHomeTest.php b/apps/dav/tests/unit/Files/FilesHomeTest.php index ec984fc23927..90d970f75466 100644 --- a/apps/dav/tests/unit/Files/FilesHomeTest.php +++ b/apps/dav/tests/unit/Files/FilesHomeTest.php @@ -37,7 +37,7 @@ class FilesHomeTest extends TestCase { /** @var View | \PHPUnit\Framework\MockObject\MockObject */ private $view; - protected function setUp() { + protected function setUp(): void { $this->view = $this->createMock(View::class); $this->filesHome = new FilesHome([ 'uri' => 'principals/users/user01' @@ -55,20 +55,22 @@ public function testGetName() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to rename this folder * @throws \Sabre\DAV\Exception\Forbidden */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to rename this folder'); + $this->filesHome->setName('alice'); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to delete home folder * @throws \Sabre\DAV\Exception\Forbidden */ public function testDelete() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to delete home folder'); + $this->filesHome->delete(); } diff --git a/apps/dav/tests/unit/Files/PreviewPluginTest.php b/apps/dav/tests/unit/Files/PreviewPluginTest.php index 01b08a7e0050..759c917f07e7 100644 --- a/apps/dav/tests/unit/Files/PreviewPluginTest.php +++ b/apps/dav/tests/unit/Files/PreviewPluginTest.php @@ -53,7 +53,7 @@ class PreviewPluginTest extends TestCase { /** @var ResponseInterface| \PHPUnit\Framework\MockObject\MockObject */ private $response; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->previewManager = $this->createMock(IPreview::class); diff --git a/apps/dav/tests/unit/Files/PublicFiles/PublicSharedRootNodeTest.php b/apps/dav/tests/unit/Files/PublicFiles/PublicSharedRootNodeTest.php index 27fe74fe82ed..ea40e0427edd 100644 --- a/apps/dav/tests/unit/Files/PublicFiles/PublicSharedRootNodeTest.php +++ b/apps/dav/tests/unit/Files/PublicFiles/PublicSharedRootNodeTest.php @@ -30,9 +30,10 @@ class PublicSharedRootNodeTest extends TestCase { /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testNoLongerExistingResource() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $share = $this->createMock(IShare::class); $request = $this->createMock(IRequest::class); $share->method('getNode')->willThrowException(new NotFoundException()); diff --git a/apps/dav/tests/unit/Files/Sharing/PublicLinkEventsPluginTest.php b/apps/dav/tests/unit/Files/Sharing/PublicLinkEventsPluginTest.php index 492f1edd9abe..6007f36297f0 100644 --- a/apps/dav/tests/unit/Files/Sharing/PublicLinkEventsPluginTest.php +++ b/apps/dav/tests/unit/Files/Sharing/PublicLinkEventsPluginTest.php @@ -37,7 +37,7 @@ class PublicLinkEventsPluginTest extends TestCase { /** @var PublicLinkEventsPlugin */ private $publicLinkEventsPlugin; - protected function setUp() { + protected function setUp(): void { $this->dispatcher = $this->createMock(EventDispatcherInterface::class); $this->server = $this->createMock(Server::class); diff --git a/apps/dav/tests/unit/JobStatus/Entity/JobStatusMapperTest.php b/apps/dav/tests/unit/JobStatus/Entity/JobStatusMapperTest.php index 649e99ffdc5c..35a8f22fd4ba 100644 --- a/apps/dav/tests/unit/JobStatus/Entity/JobStatusMapperTest.php +++ b/apps/dav/tests/unit/JobStatus/Entity/JobStatusMapperTest.php @@ -42,7 +42,7 @@ class JobStatusMapperTest extends TestCase { /** @var JobStatus */ private $testJobStatus; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->database = \OC::$server->getDatabaseConnection(); $this->mapper = new JobStatusMapper($this->database); @@ -54,7 +54,7 @@ public function setUp() { $this->testJobStatus->setStatusInfo(\json_encode([])); } - public function tearDown() { + public function tearDown(): void { parent::tearDown(); if ($this->mapper !== null && $this->testJobStatus !== null) { $this->mapper->delete($this->testJobStatus); @@ -62,9 +62,10 @@ public function tearDown() { } /** - * @expectedException \Doctrine\DBAL\Exception\UniqueConstraintViolationException */ public function testInsert() { + $this->expectException(\Doctrine\DBAL\Exception\UniqueConstraintViolationException::class); + $this->mapper->insert($this->testJobStatus); $this->assertNotNull($this->testJobStatus->getId()); // below throws exception due to unique constraint violation diff --git a/apps/dav/tests/unit/JobStatus/HomeTest.php b/apps/dav/tests/unit/JobStatus/HomeTest.php index 4e098b11c3ac..c0fe1f51cc40 100644 --- a/apps/dav/tests/unit/JobStatus/HomeTest.php +++ b/apps/dav/tests/unit/JobStatus/HomeTest.php @@ -42,9 +42,10 @@ public function testGetName() { } /** - * @expectedException \Sabre\DAV\Exception\MethodNotAllowed */ public function testGetChildren() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + /** @var JobStatusMapper | \PHPUnit\Framework\MockObject\MockObject $mapper */ $mapper = $this->createMock(JobStatusMapper::class); $home = new Home(['uri' => 'principals/users/user1'], $mapper); @@ -64,9 +65,10 @@ public function testGetChild() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetChildNotFound() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + /** @var JobStatusMapper | \PHPUnit\Framework\MockObject\MockObject $mapper */ $mapper = $this->createMock(JobStatusMapper::class); diff --git a/apps/dav/tests/unit/JobStatus/JobStatusTest.php b/apps/dav/tests/unit/JobStatus/JobStatusTest.php index 124c8f7e9822..e0ab645fdc8d 100644 --- a/apps/dav/tests/unit/JobStatus/JobStatusTest.php +++ b/apps/dav/tests/unit/JobStatus/JobStatusTest.php @@ -40,7 +40,7 @@ class JobStatusTest extends TestCase { /** @var JobStatusMapper | \PHPUnit\Framework\MockObject\MockObject */ private $mapper; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->mapper = $this->createMock(JobStatusMapper::class); diff --git a/apps/dav/tests/unit/Meta/MetaPluginTest.php b/apps/dav/tests/unit/Meta/MetaPluginTest.php index cdf502d53e86..8c033567738a 100644 --- a/apps/dav/tests/unit/Meta/MetaPluginTest.php +++ b/apps/dav/tests/unit/Meta/MetaPluginTest.php @@ -48,7 +48,7 @@ class MetaPluginTest extends TestCase { */ private $server; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->userSession = $this->createMock(IUserSession::class); diff --git a/apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php b/apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php index 361905b7f95b..55f3ce2ab5a2 100644 --- a/apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php +++ b/apps/dav/tests/unit/Repair/RemoveInvalidSharesTest.php @@ -34,7 +34,7 @@ * @group DB */ class RemoveInvalidSharesTest extends TestCase { - public function setUp() { + public function setUp(): void { parent::setUp(); $db = \OC::$server->getDatabaseConnection(); diff --git a/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php b/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php index 33762e330139..9bdc5c6bd35c 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php @@ -44,7 +44,7 @@ class SystemTagMappingNodeTest extends \Test\TestCase { */ private $user; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->tagManager = $this->createMock('\OCP\SystemTag\ISystemTagManager'); @@ -139,9 +139,10 @@ public function testDeleteTagExpectedException(ISystemTag $tag, $expectedExcepti } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testDeleteTagNotFound() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + // assuming the tag existed at the time the node was created, // but got deleted concurrently in the database $tag = new SystemTag(1, 'Test', true, true); @@ -164,9 +165,10 @@ public function testDeleteTagNotFound() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testeDeteteTagNotAllowedStaticTag() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $tag = new SystemTag(1, 'Test', true, true, false); $this->tagManager->method('canUserSeeTag') ->willReturn(true); diff --git a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php index 9c9861d6cf02..c410ee4c3d2c 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php @@ -40,7 +40,7 @@ class SystemTagNodeTest extends \Test\TestCase { */ private $user; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->tagManager = $this->createMock('\OCP\SystemTag\ISystemTagManager'); @@ -74,9 +74,10 @@ public function testGetters($isAdmin) { } /** - * @expectedException Sabre\DAV\Exception\MethodNotAllowed */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->getTagNode()->setName('2'); } @@ -193,9 +194,10 @@ public function testUpdateTagPermissionException($originalTag, $changedArgs, $ex } /** - * @expectedException Sabre\DAV\Exception\Conflict */ public function testUpdateTagAlreadyExists() { + $this->expectException(\Sabre\DAV\Exception\Conflict::class); + $tag = new SystemTag(1, 'tag1', true, true); $this->tagManager->expects($this->any()) ->method('canUserSeeTag') @@ -215,9 +217,10 @@ public function testUpdateTagAlreadyExists() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testStaticTagUpdateFail() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $tag = new SystemTag(1, 'tag1', true, true, false); $this->tagManager->expects($this->any()) ->method('canUserSeeTag') @@ -231,9 +234,10 @@ public function testStaticTagUpdateFail() { } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testUpdateTagNotFound() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $tag = new SystemTag(1, 'tag1', true, true); $this->tagManager->expects($this->any()) ->method('canUserSeeTag') @@ -313,9 +317,10 @@ public function testDeleteTagPermissionException(ISystemTag $tag, $expectedExcep } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testDeleteTagNotFound() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $tag = new SystemTag(1, 'tag1', true, true); $this->tagManager->expects($this->any()) ->method('canUserSeeTag') @@ -335,9 +340,10 @@ public function testDeleteTagNotFound() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testStaticTagExceptionForDelete() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $tag = new SystemTag(1, 'tag1', true, true, false); $this->tagManager->expects($this->any()) ->method('canUserSeeTag') diff --git a/apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php b/apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php index 7274468dea82..dc122766857a 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagPluginTest.php @@ -77,7 +77,7 @@ class SystemTagPluginTest extends \Test\TestCase { */ private $plugin; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->tree = $this->getMockBuilder('\Sabre\DAV\Tree') ->disableOriginalConstructor() @@ -227,9 +227,10 @@ public function testGetProperties(ISystemTag $systemTag, $groups, $requestedProp } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testGetPropertiesForbidden() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $systemTag = new SystemTag(1, 'Test', true, false); $requestedProperties = [ self::ID_PROPERTYNAME, @@ -326,9 +327,10 @@ public function testUpdatePropertiesAdmin() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden */ public function testUpdatePropertiesForbidden() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $systemTag = new SystemTag(1, 'Test', true, false); $this->user->expects($this->any()) ->method('getUID') @@ -379,10 +381,11 @@ public function createTagInsufficientPermissionsProvider() { } /** * @dataProvider createTagInsufficientPermissionsProvider - * @expectedException \Sabre\DAV\Exception\BadRequest - * @expectedExceptionMessage Not sufficient permissions */ public function testCreateNotAssignableTagAsRegularUser($userVisible, $userAssignable, $userEditable, $groups) { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->expectExceptionMessage('Not sufficient permissions'); + $this->user->expects($this->once()) ->method('getUID') ->willReturn('admin'); @@ -655,9 +658,10 @@ public function testCreateTagInMappingCollection() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testCreateTagToUnknownNode() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $node = $this->getMockBuilder('\OCA\DAV\SystemTag\SystemTagsObjectMappingCollection') ->disableOriginalConstructor() ->getMock(); @@ -688,9 +692,10 @@ public function testCreateTagToUnknownNode() { /** * @dataProvider nodeClassProvider - * @expectedException \Sabre\DAV\Exception\Conflict */ public function testCreateTagConflict($nodeClass) { + $this->expectException(\Sabre\DAV\Exception\Conflict::class); + $this->user->expects($this->once()) ->method('getUID') ->willReturn('admin'); diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php index a7dc867f3e70..aa0384d3a8f0 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php @@ -39,7 +39,7 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase { */ private $user; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->tagManager = $this->createMock('\OCP\SystemTag\ISystemTagManager'); @@ -71,16 +71,18 @@ public function adminFlagProvider() { } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testForbiddenCreateFile() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->getNode()->createFile('555'); } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testForbiddenCreateDirectory() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->getNode()->createDirectory('789'); } @@ -104,9 +106,10 @@ public function testGetChild() { } /** - * @expectedException Sabre\DAV\Exception\BadRequest */ public function testGetChildInvalidName() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->tagManager->expects($this->once()) ->method('getTagsByIds') ->with(['invalid']) @@ -116,9 +119,10 @@ public function testGetChildInvalidName() { } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testGetChildNotFound() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->tagManager->expects($this->once()) ->method('getTagsByIds') ->with(['444']) @@ -128,9 +132,10 @@ public function testGetChildNotFound() { } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testGetChildUserNotVisible() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $tag = new SystemTag(123, 'Test', false, false); $this->tagManager->expects($this->once()) @@ -281,9 +286,10 @@ public function testChildExistsNotFound() { } /** - * @expectedException Sabre\DAV\Exception\BadRequest */ public function testChildExistsBadRequest() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->tagManager->expects($this->once()) ->method('getTagsByIds') ->with(['invalid']) diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php index f00d95c3171b..9dbb94c58d7e 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php @@ -43,7 +43,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase { */ private $user; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->tagManager = $this->createMock('\OCP\SystemTag\ISystemTagManager'); @@ -127,10 +127,11 @@ public function testAssignTagNoPermission($userVisible, $userAssignable, $expect } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage No permission to assign tag 555 */ public function testStaticTagAssignNoPermission() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('No permission to assign tag 555'); + $tag = new SystemTag('1', 'Test', true, true, false); $this->tagManager->expects($this->once()) ->method('getTagsByIds') @@ -147,9 +148,10 @@ public function testStaticTagAssignNoPermission() { } /** - * @expectedException Sabre\DAV\Exception\PreconditionFailed */ public function testAssignTagNotFound() { + $this->expectException(\Sabre\DAV\Exception\PreconditionFailed::class); + $this->tagManager->expects($this->once()) ->method('getTagsByIds') ->with(['555']) @@ -159,9 +161,10 @@ public function testAssignTagNotFound() { } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testForbiddenCreateDirectory() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->getNode()->createDirectory('789'); } @@ -189,9 +192,10 @@ public function testGetChild() { } /** - * @expectedException \Sabre\DAV\Exception\NotFound */ public function testGetChildNonVisible() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $tag = new SystemTag(555, 'TheTag', false, false); $this->tagManager->expects($this->once()) ->method('canUserSeeTag') @@ -212,9 +216,10 @@ public function testGetChildNonVisible() { } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testGetChildRelationNotFound() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->tagMapper->expects($this->once()) ->method('haveTag') ->with([111], 'files', '777') @@ -224,9 +229,10 @@ public function testGetChildRelationNotFound() { } /** - * @expectedException Sabre\DAV\Exception\BadRequest */ public function testGetChildInvalidId() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->tagMapper->expects($this->once()) ->method('haveTag') ->with([111], 'files', 'badid') @@ -236,9 +242,10 @@ public function testGetChildInvalidId() { } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testGetChildTagDoesNotExist() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->tagMapper->expects($this->once()) ->method('haveTag') ->with([111], 'files', '777') @@ -340,9 +347,10 @@ public function testChildExistsTagNotFound() { } /** - * @expectedException Sabre\DAV\Exception\BadRequest */ public function testChildExistsInvalidId() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->tagMapper->expects($this->once()) ->method('haveTag') ->with([111], 'files', '555') @@ -352,16 +360,18 @@ public function testChildExistsInvalidId() { } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testDelete() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->getNode()->delete(); } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->getNode()->setName('somethingelse'); } diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php index 5aa5bb64cfe9..cb5eed9b2256 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php @@ -45,7 +45,7 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase { */ private $userFolder; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->tagManager = $this->createMock('\OCP\SystemTag\ISystemTagManager'); @@ -84,16 +84,18 @@ protected function setUp() { } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testForbiddenCreateFile() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->node->createFile('555'); } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testForbiddenCreateDirectory() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->node->createDirectory('789'); } @@ -109,9 +111,10 @@ public function testGetChild() { } /** - * @expectedException Sabre\DAV\Exception\NotFound */ public function testGetChildWithoutAccess() { + $this->expectException(\Sabre\DAV\Exception\NotFound::class); + $this->userFolder->expects($this->once()) ->method('getById') ->with('555') @@ -120,9 +123,10 @@ public function testGetChildWithoutAccess() { } /** - * @expectedException Sabre\DAV\Exception\MethodNotAllowed */ public function testGetChildren() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->node->getChildren(); } @@ -143,16 +147,18 @@ public function testChildExistsWithoutAccess() { } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testDelete() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->node->delete(); } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->node->setName('somethingelse'); } diff --git a/apps/dav/tests/unit/TrashBin/TrashBinFileTest.php b/apps/dav/tests/unit/TrashBin/TrashBinFileTest.php index f9567519c27c..05bd7bd63856 100644 --- a/apps/dav/tests/unit/TrashBin/TrashBinFileTest.php +++ b/apps/dav/tests/unit/TrashBin/TrashBinFileTest.php @@ -51,7 +51,7 @@ public function providesExceptions() : array { ]; } - protected function setUp() { + protected function setUp(): void { parent::setUp(); $fileInfo = $this->createMock(FileInfo::class); $this->trashBinManager = $this->createMock(TrashBinManager::class); @@ -59,26 +59,29 @@ protected function setUp() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to write this file */ public function testPut() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to write this file'); + $this->trashBinFile->put(''); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to read this file */ public function testGet() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to read this file'); + $this->trashBinFile->get(); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to rename this resource */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to rename this resource'); + $this->trashBinFile->setName(''); } diff --git a/apps/dav/tests/unit/TrashBin/TrashBinFolderTest.php b/apps/dav/tests/unit/TrashBin/TrashBinFolderTest.php index 917ea875fe8d..b8cb50d74ceb 100644 --- a/apps/dav/tests/unit/TrashBin/TrashBinFolderTest.php +++ b/apps/dav/tests/unit/TrashBin/TrashBinFolderTest.php @@ -42,7 +42,7 @@ class TrashBinFolderTest extends TestCase { */ private $fileInfo; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->fileInfo = $this->createMock(FileInfo::class); $this->trashBinManager = $this->createMock(TrashBinManager::class); @@ -59,26 +59,29 @@ protected function setUp() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to create a file */ public function testCreateFile() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to create a file'); + $this->trashBinFolder->createFile(''); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to create a folder */ public function testCreateFolder() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to create a folder'); + $this->trashBinFolder->createDirectory(''); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to rename this resource */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to rename this resource'); + $this->trashBinFolder->setName(''); } diff --git a/apps/dav/tests/unit/TrashBin/TrashBinHomeTest.php b/apps/dav/tests/unit/TrashBin/TrashBinHomeTest.php index adf90bdc3eda..212fff7a7f49 100644 --- a/apps/dav/tests/unit/TrashBin/TrashBinHomeTest.php +++ b/apps/dav/tests/unit/TrashBin/TrashBinHomeTest.php @@ -36,7 +36,7 @@ class TrashBinHomeTest extends TestCase { */ private $trashBinManager; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->trashBinManager = $this->createMock(TrashBinManager::class); $this->trashBinHome = new TrashBinHome([ @@ -45,10 +45,11 @@ protected function setUp() { } /** - * @expectedException \Sabre\DAV\Exception\Forbidden - * @expectedExceptionMessage Permission denied to rename this folder */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->expectExceptionMessage('Permission denied to rename this folder'); + $this->trashBinHome->setName(''); } diff --git a/apps/dav/tests/unit/TreeTest.php b/apps/dav/tests/unit/TreeTest.php index c4b4027031a0..0a6d716fb05b 100644 --- a/apps/dav/tests/unit/TreeTest.php +++ b/apps/dav/tests/unit/TreeTest.php @@ -45,7 +45,7 @@ public function providesPaths() { ]; } - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->rootNode = $this->createMock(ICollection::class); diff --git a/apps/dav/tests/unit/Upload/ChunkLocationProviderTest.php b/apps/dav/tests/unit/Upload/ChunkLocationProviderTest.php index 38401e545c16..7eb6ff747173 100644 --- a/apps/dav/tests/unit/Upload/ChunkLocationProviderTest.php +++ b/apps/dav/tests/unit/Upload/ChunkLocationProviderTest.php @@ -39,7 +39,7 @@ class ChunkLocationProviderTest extends TestCase { /** @var IStorageFactory | \PHPUnit\Framework\MockObject\MockObject */ private $factory; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->config = $this->createMock(IConfig::class); $this->provider = new ChunkLocationProvider($this->config); diff --git a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php index fee71266cc53..3ca256931b77 100644 --- a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php +++ b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php @@ -49,7 +49,7 @@ class ChunkingPluginTest extends TestCase { /** @var ResponseInterface | \PHPUnit\Framework\MockObject\MockObject */ private $response; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->server = $this->getMockBuilder('\Sabre\DAV\Server') @@ -140,10 +140,11 @@ public function testBeforeMoveFutureFileMoveIt() { } /** - * @expectedException \Sabre\DAV\Exception\BadRequest - * @expectedExceptionMessage Chunks on server do not sum up to 4 but to 3 */ public function testBeforeMoveSizeIsWrong() { + $this->expectException(\Sabre\DAV\Exception\BadRequest::class); + $this->expectExceptionMessage('Chunks on server do not sum up to 4 but to 3'); + $sourceNode = $this->createMock(FutureFile::class); $sourceNode->expects($this->once()) ->method('getSize') diff --git a/apps/dav/tests/unit/Upload/FutureFileTest.php b/apps/dav/tests/unit/Upload/FutureFileTest.php index ca7814411d76..0a4afbe0d922 100644 --- a/apps/dav/tests/unit/Upload/FutureFileTest.php +++ b/apps/dav/tests/unit/Upload/FutureFileTest.php @@ -51,7 +51,7 @@ public function testGetSize() { public function testGet() { $f = $this->mockFutureFile(); $stream = $f->get(); - $this->assertInternalType('resource', $stream); + $this->assertIsResource($stream); } public function testDelete() { @@ -68,17 +68,19 @@ public function testDelete() { } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testPut() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $f = $this->mockFutureFile(); $f->put(''); } /** - * @expectedException Sabre\DAV\Exception\Forbidden */ public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $f = $this->mockFutureFile(); $f->setName(''); } diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php index 415e033e27e2..18c0114e64aa 100644 --- a/apps/federatedfilesharing/tests/AddressHandlerTest.php +++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php @@ -38,7 +38,7 @@ class AddressHandlerTest extends \Test\TestCase { /** @var IL10N | \PHPUnit\Framework\MockObject\MockObject */ private $il10n; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->urlGenerator = $this->createMock('OCP\IURLGenerator'); @@ -113,9 +113,10 @@ public function dataTestSplitUserRemoteError() { * @dataProvider dataTestSplitUserRemoteError * * @param string $id - * @expectedException \OC\HintException */ public function testSplitUserRemoteError($id) { + $this->expectException(\OC\HintException::class); + $this->addressHandler->splitUserRemote($id); } diff --git a/apps/federatedfilesharing/tests/Command/PollIncomingSharesTest.php b/apps/federatedfilesharing/tests/Command/PollIncomingSharesTest.php index 2c146df53b9a..d956580c95c7 100644 --- a/apps/federatedfilesharing/tests/Command/PollIncomingSharesTest.php +++ b/apps/federatedfilesharing/tests/Command/PollIncomingSharesTest.php @@ -65,7 +65,7 @@ class PollIncomingSharesTest extends TestCase { */ private $externalManager; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->dbConnection = $this->createMock(IDBConnection::class); $this->userManager = $this->createMock(IUserManager::class); @@ -106,7 +106,10 @@ public function testWithFilesSharingDisabled() { $this->commandTester = new CommandTester($command); $this->commandTester->execute([]); $output = $this->commandTester->getDisplay(); - $this->assertContains("Polling is not possible when files_sharing app is disabled. Please enable it with 'occ app:enable files_sharing'", $output); + $this->assertStringContainsString( + "Polling is not possible when files_sharing app is disabled. Please enable it with 'occ app:enable files_sharing'", + $output + ); } public function testUnavailableStorage() { @@ -143,7 +146,7 @@ public function testUnavailableStorage() { $this->dbConnection->method('getQueryBuilder')->willReturn($qbMock); $this->commandTester->execute([]); $output = $this->commandTester->getDisplay(); - $this->assertContains( + $this->assertStringContainsString( 'Skipping external share with id "50" from remote "example.org". Reason: "Ooops"', $output ); @@ -166,7 +169,7 @@ public function testNotExistingUser() { $this->dbConnection->method('getQueryBuilder')->willReturn($qbMock); $this->commandTester->execute([]); $output = $this->commandTester->getDisplay(); - $this->assertContains( + $this->assertStringContainsString( 'Skipping user "foo". Reason: user manager was unable to resolve the uid into the user object', $output ); @@ -207,7 +210,7 @@ public function testPollingUnsharedMount() { $this->dbConnection->method('getQueryBuilder')->willReturn($qbMock); $this->commandTester->execute([]); $output = $this->commandTester->getDisplay(); - $this->assertContains( + $this->assertStringContainsString( 'Remote "example.org" reports that external share with id "50" no longer exists. Removing it..', $output ); diff --git a/apps/federatedfilesharing/tests/Controller/OcmControllerTest.php b/apps/federatedfilesharing/tests/Controller/OcmControllerTest.php index 1243da907009..2a953a2ddf1b 100644 --- a/apps/federatedfilesharing/tests/Controller/OcmControllerTest.php +++ b/apps/federatedfilesharing/tests/Controller/OcmControllerTest.php @@ -96,7 +96,7 @@ class OcmControllerTest extends TestCase { */ private $shareToken = 'abc'; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->request = $this->createMock(IRequest::class); diff --git a/apps/federatedfilesharing/tests/Controller/RequestHandlerTest.php b/apps/federatedfilesharing/tests/Controller/RequestHandlerTest.php index 4e8f4e4fbb0a..6da812747fe7 100644 --- a/apps/federatedfilesharing/tests/Controller/RequestHandlerTest.php +++ b/apps/federatedfilesharing/tests/Controller/RequestHandlerTest.php @@ -82,7 +82,7 @@ class RequestHandlerTest extends TestCase { */ private $requestHandlerController; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->request = $this->createMock(IRequest::class); diff --git a/apps/federatedfilesharing/tests/Controller/SharingPersonalSettingsControllerTest.php b/apps/federatedfilesharing/tests/Controller/SharingPersonalSettingsControllerTest.php index a5037c447c61..765c98b4739a 100644 --- a/apps/federatedfilesharing/tests/Controller/SharingPersonalSettingsControllerTest.php +++ b/apps/federatedfilesharing/tests/Controller/SharingPersonalSettingsControllerTest.php @@ -44,7 +44,7 @@ class SharingPersonalSettingsControllerTest extends TestCase { /** @var SharingPersonalSettingsController $personalSettingsController */ private $sharingPersonalSettingsController; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->config = $this->getMockBuilder(IConfig::class) ->disableOriginalConstructor() diff --git a/apps/federatedfilesharing/tests/DiscoveryManagerTest.php b/apps/federatedfilesharing/tests/DiscoveryManagerTest.php index e9edc6bbc437..7ca1a36c709e 100644 --- a/apps/federatedfilesharing/tests/DiscoveryManagerTest.php +++ b/apps/federatedfilesharing/tests/DiscoveryManagerTest.php @@ -38,7 +38,7 @@ class DiscoveryManagerTest extends \Test\TestCase { /** @var DiscoveryManager */ private $discoveryManager; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->cache = $this->createMock('\OCP\ICache'); /** @var ICacheFactory $cacheFactory */ diff --git a/apps/federatedfilesharing/tests/FedShareManagerTest.php b/apps/federatedfilesharing/tests/FedShareManagerTest.php index 226f9e6cdf60..b089e87f4a41 100644 --- a/apps/federatedfilesharing/tests/FedShareManagerTest.php +++ b/apps/federatedfilesharing/tests/FedShareManagerTest.php @@ -71,7 +71,7 @@ class FedShareManagerTest extends TestCase { /** @var EventDispatcherInterface | \PHPUnit\Framework\MockObject\MockObject */ private $eventDispatcher; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->federatedShareProvider = $this->getMockBuilder( diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php index f5a7ddea4483..e5d7f4996164 100644 --- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php +++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php @@ -79,7 +79,7 @@ class FederatedShareProviderTest extends \Test\TestCase { /** @var FederatedShareProvider */ protected $provider; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->connection = \OC::$server->getDatabaseConnection(); @@ -121,10 +121,10 @@ public function setUp() { $this->shareManager = \OC::$server->getShareManager(); } - public function tearDown() { + public function tearDown(): void { $this->connection->getQueryBuilder()->delete('share')->execute(); - return parent::tearDown(); + parent::tearDown(); } public function testCreate() { @@ -172,10 +172,10 @@ public function testCreate() { ->where($qb->expr()->eq('id', $qb->createNamedParameter($share->getId()))) ->execute(); - $data = $stmt->fetch(); + $fetchedData = $stmt->fetch(); $stmt->closeCursor(); - $expected = [ + $expectedSubset = [ 'share_type' => \OCP\Share::SHARE_TYPE_REMOTE, 'share_with' => 'user@server.com', 'uid_owner' => 'shareOwner', @@ -187,9 +187,12 @@ public function testCreate() { 'accepted' => 0, 'token' => 'token', ]; - $this->assertArraySubset($expected, $data); + foreach ($expectedSubset as $key => $value) { + $this->assertArrayHasKey($key, $fetchedData); + $this->assertEquals($value, $fetchedData[$key]); + } - $this->assertEquals($data['id'], $share->getId()); + $this->assertEquals($fetchedData['id'], $share->getId()); $this->assertEquals(\OCP\Share::SHARE_TYPE_REMOTE, $share->getShareType()); $this->assertEquals('user@server.com', $share->getSharedWith()); $this->assertEquals('sharedBy', $share->getSharedBy()); @@ -256,10 +259,10 @@ public function testCreateLegacy() { ->where($qb->expr()->eq('id', $qb->createNamedParameter($share->getId()))) ->execute(); - $data = $stmt->fetch(); + $fetchedData = $stmt->fetch(); $stmt->closeCursor(); - $expected = [ + $expectedSubset = [ 'share_type' => \OCP\Share::SHARE_TYPE_REMOTE, 'share_with' => 'user@server.com', 'uid_owner' => 'shareOwner', @@ -271,9 +274,12 @@ public function testCreateLegacy() { 'accepted' => 0, 'token' => 'token', ]; - $this->assertArraySubset($expected, $data); + foreach ($expectedSubset as $key => $value) { + $this->assertArrayHasKey($key, $fetchedData); + $this->assertEquals($value, $fetchedData[$key]); + } - $this->assertEquals($data['id'], $share->getId()); + $this->assertEquals($fetchedData['id'], $share->getId()); $this->assertEquals(\OCP\Share::SHARE_TYPE_REMOTE, $share->getShareType()); $this->assertEquals('user@server.com', $share->getSharedWith()); $this->assertEquals('shareOwner', $share->getSharedBy()); diff --git a/apps/federatedfilesharing/tests/Middleware/OcmMiddlewareTest.php b/apps/federatedfilesharing/tests/Middleware/OcmMiddlewareTest.php index 8c3151f8ddcc..087e29d479cc 100644 --- a/apps/federatedfilesharing/tests/Middleware/OcmMiddlewareTest.php +++ b/apps/federatedfilesharing/tests/Middleware/OcmMiddlewareTest.php @@ -71,7 +71,7 @@ class OcmMiddlewareTest extends TestCase { */ private $logger; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->federatedShareProvider = $this->createMock( diff --git a/apps/federatedfilesharing/tests/NotificationsTest.php b/apps/federatedfilesharing/tests/NotificationsTest.php index 8d807ddd1858..222dc35fbb48 100644 --- a/apps/federatedfilesharing/tests/NotificationsTest.php +++ b/apps/federatedfilesharing/tests/NotificationsTest.php @@ -57,7 +57,7 @@ class NotificationsTest extends \Test\TestCase { /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */ private $config; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->jobList = $this->createMock(IJobList::class); diff --git a/apps/federatedfilesharing/tests/Ocm/PermissionsTest.php b/apps/federatedfilesharing/tests/Ocm/PermissionsTest.php index f2734c597d20..107b2500c529 100644 --- a/apps/federatedfilesharing/tests/Ocm/PermissionsTest.php +++ b/apps/federatedfilesharing/tests/Ocm/PermissionsTest.php @@ -37,7 +37,7 @@ class PermissionsTest extends TestCase { */ private $permissions; - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->permissions = new Permissions(); } diff --git a/apps/federatedfilesharing/tests/Panels/AdminPanelTest.php b/apps/federatedfilesharing/tests/Panels/AdminPanelTest.php index da0da9c64a7f..b073181cbc04 100644 --- a/apps/federatedfilesharing/tests/Panels/AdminPanelTest.php +++ b/apps/federatedfilesharing/tests/Panels/AdminPanelTest.php @@ -37,7 +37,7 @@ class AdminPanelTest extends \Test\TestCase { /** @var IConfig */ private $config; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->shareProvider = $this->getMockBuilder(FederatedShareProvider::class) ->disableOriginalConstructor() @@ -51,7 +51,7 @@ public function testGetSection() { } public function testGetPriority() { - $this->assertInternalType('int', $this->panel->getPriority()); + $this->assertIsInt($this->panel->getPriority()); } public function testGetPanel() { diff --git a/apps/federatedfilesharing/tests/Panels/GeneralPersonalPanelTest.php b/apps/federatedfilesharing/tests/Panels/GeneralPersonalPanelTest.php index 209abea65e6b..c8aabce2d201 100644 --- a/apps/federatedfilesharing/tests/Panels/GeneralPersonalPanelTest.php +++ b/apps/federatedfilesharing/tests/Panels/GeneralPersonalPanelTest.php @@ -47,7 +47,7 @@ class GeneralPersonalPanelTest extends \Test\TestCase { /** @var IRequest */ private $request; - public function setUp() { + public function setUp(): void { parent::setUp(); $this->l = $this->getMockBuilder(IL10N::class)->getMock(); $this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->getMock(); @@ -68,7 +68,7 @@ public function testGetSection() { } public function testGetPriority() { - $this->assertInternalType('int', $this->panel->getPriority()); + $this->assertIsInt($this->panel->getPriority()); $this->assertTrue($this->panel->getPriority() < 50); } @@ -79,6 +79,6 @@ public function testGetPanel() { $this->userSession->expects($this->once())->method('getUser')->willReturn($mockUser); $this->shareProvider->expects($this->once())->method('isOutgoingServer2serverShareEnabled')->willReturn(true); $templateHtml = $this->panel->getPanel()->fetchPage(); - $this->assertContains('
Nothing to configure.
', $templateHtml); + $this->assertStringContainsString( + 'Nothing to configure.
', + $templateHtml + ); } public function testGetPanelNotEmpty() { @@ -100,6 +103,9 @@ public function testGetPanelNotEmpty() { ->willReturn('yes'); $templateHtml = $this->personalPanel->getPanel()->fetchPage(); - $this->assertContains('