Commit 814132a
Fix ProcessFileJobTest by removing deprecated OCP\Snowflake\IGenerator dependency (#346)
* Initial plan
* Fix ProcessFileJobTest by removing deprecated IGenerator dependency
The test was failing because it tried to mock OCP\Snowflake\IGenerator which no longer exists in recent Nextcloud versions. The JobList constructor signature has changed and no longer requires this parameter.
Changes:
- Removed import of OCP\Snowflake\IGenerator
- Changed from concrete JobList class to IJobList interface
- Removed unnecessary mocks for IConfig, ITimeFactory, IDBConnection, IQueryBuilder, IExpressionBuilder
- Simplified test setup to just create a mock of IJobList
- Removed IGenerator property and related setup code
This aligns the test with how other Nextcloud server tests handle JobList mocking.
Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: R0Wi <19730957+R0Wi@users.noreply.github.com>1 parent 2b634a1 commit 814132a
1 file changed
+3
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 29 | + | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 41 | + | |
50 | 42 | | |
51 | 43 | | |
52 | 44 | | |
| |||
71 | 63 | | |
72 | 64 | | |
73 | 65 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 66 | + | |
108 | 67 | | |
109 | 68 | | |
110 | 69 | | |
| |||
0 commit comments