Commit d6f46d7
committed
fix(test): mark ContentManagerTest as a DB test and more fixes
The phpunit workflow failed on Nextcloud 36 with PHP >= 8.4:
TypeError: OC\Files\Config\UserMountCache::__construct():
Argument #1 ($connection) must be of type OCP\IDBConnection, null given
- Extend PHPUnit\Framework\TestCase instead of Test\TestCase.
- Add the DB group, since the test uses the real IJobList, and declare it
with the #[Group] attribute.
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Assisted-by: Github Copilot:claude-opus-51 parent 08c5041 commit d6f46d7
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
0 commit comments