From 9a047cbbcdfb17ebf9b46aee8eeb17ae7f17a160 Mon Sep 17 00:00:00 2001 From: Devlin Junker Date: Tue, 8 Aug 2023 16:09:08 -0700 Subject: minimum nextcloud version supported is 27 Signed-off-by: Devlin Junker --- .github/workflows/api-integration-tests.yml | 10 +--------- .github/workflows/api-php-static-code-check.yml | 4 ---- .github/workflows/api-php-tests.yml | 8 +------- appinfo/info.xml | 2 +- composer.json | 2 +- tests/Unit/Service/FolderServiceTest.php | 13 ------------- 6 files changed, 4 insertions(+), 35 deletions(-) diff --git a/.github/workflows/api-integration-tests.yml b/.github/workflows/api-integration-tests.yml index 16ea84198..f7619ff18 100644 --- a/.github/workflows/api-integration-tests.yml +++ b/.github/workflows/api-integration-tests.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: php-versions: ['8.0', '8.1'] - nextcloud: ['stable25', 'stable26', 'stable27'] + nextcloud: ['stable27'] database: ['sqlite', 'pgsql', 'mysql'] experimental: [false] include: @@ -41,14 +41,6 @@ jobs: nextcloud: pre-release database: sqlite experimental: true - - php-versions: 7.4 - nextcloud: stable25 - database: sqlite - experimental: false - - php-versions: 8.2 - nextcloud: stable26 - database: sqlite - experimental: false steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/api-php-static-code-check.yml b/.github/workflows/api-php-static-code-check.yml index 4afd9eaf1..37035c244 100644 --- a/.github/workflows/api-php-static-code-check.yml +++ b/.github/workflows/api-php-static-code-check.yml @@ -15,10 +15,6 @@ jobs: nextcloud: pre-release database: sqlite experimental: true - - php-versions: 7.4 - nextcloud: stable25 - database: sqlite - experimental: false name: "phpstan: Nextcloud ${{ matrix.nextcloud }} with ${{ matrix.php-versions }}" steps: - name: Checkout diff --git a/.github/workflows/api-php-tests.yml b/.github/workflows/api-php-tests.yml index dae893f22..1b309daf8 100644 --- a/.github/workflows/api-php-tests.yml +++ b/.github/workflows/api-php-tests.yml @@ -10,16 +10,10 @@ jobs: strategy: matrix: php-versions: ['8.1'] - nextcloud: ['stable26', 'stable27'] + nextcloud: ['stable27'] database: ['sqlite'] experimental: [false] codecoverage: [false] - include: - - php-versions: 8.0 - nextcloud: stable25 - database: sqlite - experimental: false - codecoverage: true steps: - name: Checkout uses: actions/checkout@v3 diff --git a/appinfo/info.xml b/appinfo/info.xml index 1b06a84ad..884a7b041 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -55,7 +55,7 @@ Report a [feed issue](https://github.com/nextcloud/news/discussions/new) json - + diff --git a/composer.json b/composer.json index 42055a515..fb17d5192 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "source": "https://github.com/nextcloud/news/" }, "require": { - "php": "^7.4 || ~8.0", + "php": "~8.0", "ezyang/htmlpurifier": "^4.16.0", "pear/net_url2": "^2.2.2", "riimu/kit-pathjoin": "^1.2.0", diff --git a/tests/Unit/Service/FolderServiceTest.php b/tests/Unit/Service/FolderServiceTest.php index e043e11ec..a80afeb13 100644 --- a/tests/Unit/Service/FolderServiceTest.php +++ b/tests/Unit/Service/FolderServiceTest.php @@ -69,19 +69,6 @@ class FolderServiceTest extends TestCase $timeFactoryBuilder = $this->getMockBuilder(TimeFactory::class) ->disableOriginalConstructor(); - // HACK: due to differences in NC26 and NC 27 - if (!method_exists(TimeFactory::class, 'now')) { - $timeFactoryBuilder->addMethods(['now']) - ->onlyMethods(['getTime']); - } else if(!method_exists(TimeFactory::class, 'getTime')) { - $timeFactoryBuilder->addMethods(['getTime']); - } - - $timeFactory = $timeFactoryBuilder->getMock(); - $timeFactory->expects($this->any()) - ->method('getTime') - ->will($this->returnValue($this->time)); - $mockDateTime = $this->getMockBuilder(\DateTimeImmutable::class) ->disableOriginalConstructor() ->getMock(); -- cgit v1.2.3