Skip to content

test: prepare unit and e2e tests for Nextcloud 36 - #1385

Closed
hweihwang wants to merge 1 commit into
mainfrom
fix/nc36-test-mocks
Closed

hweihwang wants to merge 1 commit into
mainfrom
fix/nc36-test-mocks

Conversation

@hweihwang

Copy link
Copy Markdown
Contributor

Prepares the tests for Nextcloud 36, so #1374 can get a green CI on master.

  • On 36, IRootFolder::getUserFolder() returns IUserFolder, so the Folder mocks fail with IncompatibleReturnValueException (44 errors). The tests now mock IUserFolder when it exists.
  • The embed e2e test is skipped on master, because the Files smart picker and the file reference widget do not work with the 36 viewer yet.

Locally, the affected test classes pass against the server master OCP, except 2 tests that need a full server.

AI

  • Prepared with AI assistance.

On Nextcloud 36, IRootFolder::getUserFolder() returns IUserFolder, so the
Folder mocks fail with IncompatibleReturnValueException. Mock IUserFolder
when it exists.

Skip the embed e2e test on master: the Files smart picker and the file
reference widget do not work with the Nextcloud 36 viewer yet.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Hoang Pham <hoangmaths96@gmail.com>
@hweihwang

Copy link
Copy Markdown
Contributor Author

Included in #1374.

@hweihwang hweihwang closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant