Skip to content

Commit

Permalink
minimum nextcloud version supported is 27
Browse files Browse the repository at this point in the history
Signed-off-by: Devlin Junker <[email protected]>
  • Loading branch information
devlinjunker authored and Grotax committed Aug 9, 2023
1 parent b9a5887 commit 9a047cb
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 35 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/api-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/api-php-static-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/api-php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Report a [feed issue](https://github.com/nextcloud/news/discussions/new)
<lib>json</lib>

<owncloud max-version="0" min-version="0"/>
<nextcloud min-version="25" max-version="27"/>
<nextcloud min-version="27" max-version="27"/>
</dependencies>

<background-jobs>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 0 additions & 13 deletions tests/Unit/Service/FolderServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ protected function setUp(): void
$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();
Expand Down

0 comments on commit 9a047cb

Please sign in to comment.