16 Commits

Author SHA1 Message Date
bdbb9bb170 Replace deprecated getter function with get on the Server
These have been deprecated since Nextcloud 20 and removed in 32.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
2026-01-05 10:46:15 +01:00
bd9eca8fbc Update Dependencies and Nextcloud Requirement
Signed-off-by: Alexander Ratajczak <a4blue@hotmail.de>
2025-04-23 16:38:34 +02:00
03cc1dbf05 Bump app to Nextcloud 30
Closes #1333

I decided to not cross-check the availability of all all deprecated
things with older majors, so both min and max version are v30 for now.

A list of all things that I've fixed:

* Deprecated SCSS variables updated as documented in the upgrade notes[1].
* Fixed a bunch of query builder deprecations:
  * $qb->resetQueryParts() is deprecated, one should just create a new
    query-builder object. Done that.
  * Calling `$qb->expr()->andX()` (and `orX()`) with no arguments is
    deprecated. Instead, one should list all arguments in an array and
    pass that to the method. Reworked queries where necessary to do so.
* The PHPUnit version I got by running `make test` downloaded a version
  that prohibits non-static data providers. Made all affected data
  providers static.

With that, everything from `make test` passes in a local dev
installation of Nextcloud 30 except for two tests:

    1) OCA\Maps\Controller\PhotosControllerTest::testAddGetPhotos
    Failed asserting that actual size 0 matches expected size 1.

    /home/ma27/Projects/nextcloud/apps/maps/tests/Unit/Controller/PhotosControllerTest.php:206

    2) OCA\Maps\Controller\TracksControllerTest::testAddGetTracks
    Failed asserting that false matches expected true.

    /home/ma27/Projects/nextcloud/apps/maps/tests/Unit/Controller/TracksControllerTest.php:205

Both tests failed on the previous commit already, so I decided to leave
those for now.

[1] https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.html#front-end-changes

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2024-10-07 17:26:12 +02:00
64f338689c chore: Migrate from ILogger to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-19 18:18:06 +02:00
b059d12c92 chore: composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-14 20:21:41 +02:00
9dc50dce7e Merge branch 'master' into nextgovhackathon-master
Signed-off-by: Arne Hamann <git@arne.email>
2022-07-31 18:56:59 +02:00
75cb4f8f40 Make first letter capital in tests
Signed-off-by: Arne Hamann <git@arne.email>
2022-06-16 22:52:07 +02:00
aced57af22 Fixed unit tests
Signed-off-by: Arne Hamann <git@arne.email>
2022-05-01 00:00:15 +02:00
2da416864e fix most named service injection
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2020-07-06 20:19:24 +02:00
ce5ec9eda5 clarify and refactor named service injections
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2020-07-06 19:39:35 +02:00
c0d818df6c fix dbconnection named service injection
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2020-07-06 17:09:03 +02:00
c37df6a58e add some tests
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-18 12:41:05 +02:00
a675162640 gitlab CI is now working, tests are finally operational
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-17 18:39:53 +02:00
1697029b0f fix some code analysis errors and adjust tests
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-16 19:39:49 +02:00
68e3ed39b2 fix storage issues in tests
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-16 16:28:03 +02:00
e88ce739fa start to write tracksController test
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-16 13:24:41 +02:00