@@ -78,7 +78,7 @@ protected function setUp(): void {
78
78
protected function tearDown (): void {
79
79
$ qb = $ this ->db ->getQueryBuilder ();
80
80
$ qb ->delete ('retention ' );
81
- $ qb ->execute ();
81
+ $ qb ->executeStatement ();
82
82
83
83
parent ::tearDown ();
84
84
}
@@ -112,7 +112,7 @@ public function testAddRetention() {
112
112
$ qb = $ this ->db ->getQueryBuilder ();
113
113
$ qb ->select ('* ' )
114
114
->from ('retention ' );
115
- $ cursor = $ qb ->execute ();
115
+ $ cursor = $ qb ->executeQuery ();
116
116
$ data = $ cursor ->fetchAll ();
117
117
$ cursor ->closeCursor ();
118
118
@@ -164,23 +164,23 @@ public function dataGetRetentions(): array {
164
164
],
165
165
[
166
166
[
167
- ['tagid ' => 1 , 'timeunit ' => Constants::DAY , 'timeamount ' => 1 , 'timeafter ' => 0 , 'hasJob ' => false ],
167
+ ['tagid ' => 1 , 'timeunit ' => Constants::DAY , 'timeamount ' => 1 , 'timeafter ' => 0 , 'hasJob ' => true ],
168
168
]
169
169
],
170
170
[
171
171
[
172
- ['tagid ' => 1 , 'timeunit ' => Constants::DAY , 'timeamount ' => 1 , 'timeafter ' => 0 , 'hasJob ' => false ],
173
- ['tagid ' => 2 , 'timeunit ' => Constants::WEEK , 'timeamount ' => 2 , 'timeafter ' => 0 , 'hasJob ' => false ],
174
- ['tagid ' => 3 , 'timeunit ' => Constants::MONTH , 'timeamount ' => 3 , 'timeafter ' => 1 , 'hasJob ' => false ],
175
- ['tagid ' => 4 , 'timeunit ' => Constants::YEAR , 'timeamount ' => 4 , 'timeafter ' => 1 , 'hasJob ' => false ],
172
+ ['tagid ' => 1 , 'timeunit ' => Constants::DAY , 'timeamount ' => 1 , 'timeafter ' => 0 , 'hasJob ' => true ],
173
+ ['tagid ' => 2 , 'timeunit ' => Constants::WEEK , 'timeamount ' => 2 , 'timeafter ' => 0 , 'hasJob ' => true ],
174
+ ['tagid ' => 3 , 'timeunit ' => Constants::MONTH , 'timeamount ' => 3 , 'timeafter ' => 1 , 'hasJob ' => true ],
175
+ ['tagid ' => 4 , 'timeunit ' => Constants::YEAR , 'timeamount ' => 4 , 'timeafter ' => 1 , 'hasJob ' => true ],
176
176
]
177
177
],
178
178
[
179
179
[
180
- ['tagid ' => 1 , 'timeunit ' => Constants::DAY , 'timeamount ' => 1 , 'timeafter ' => 0 , 'hasJob ' => false ],
181
- ['tagid ' => 2 , 'timeunit ' => Constants::WEEK , 'timeamount ' => 2 , 'timeafter ' => 0 , 'hasJob ' => false , 'expected ' => false ],
182
- ['tagid ' => 3 , 'timeunit ' => Constants::MONTH , 'timeamount ' => 3 , 'timeafter ' => 1 , 'hasJob ' => false , 'expected ' => false ],
183
- ['tagid ' => 4 , 'timeunit ' => Constants::YEAR , 'timeamount ' => 4 , 'timeafter ' => 1 , 'hasJob ' => false ],
180
+ ['tagid ' => 1 , 'timeunit ' => Constants::DAY , 'timeamount ' => 1 , 'timeafter ' => 0 , 'hasJob ' => true ],
181
+ ['tagid ' => 2 , 'timeunit ' => Constants::WEEK , 'timeamount ' => 2 , 'timeafter ' => 0 , 'hasJob ' => true , 'expected ' => false ],
182
+ ['tagid ' => 3 , 'timeunit ' => Constants::MONTH , 'timeamount ' => 3 , 'timeafter ' => 1 , 'hasJob ' => true , 'expected ' => false ],
183
+ ['tagid ' => 4 , 'timeunit ' => Constants::YEAR , 'timeamount ' => 4 , 'timeafter ' => 1 , 'hasJob ' => true ],
184
184
],
185
185
['2 ' , '3 ' ],
186
186
],
0 commit comments