File tree Expand file tree Collapse file tree 3 files changed +6
-23
lines changed Expand file tree Collapse file tree 3 files changed +6
-23
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ class BatchesQuery
17
17
*/
18
18
private ?int $ limit = null ;
19
19
20
- /**
21
- * @var non-empty-list<int>|null
22
- */
23
- private ?array $ canceledBy = null ;
24
-
25
20
private ?bool $ reverse = null ;
26
21
27
22
/**
@@ -34,18 +29,6 @@ public function setFrom(int $from): self
34
29
return $ this ;
35
30
}
36
31
37
- /**
38
- * @param non-empty-list<int> $canceledBy
39
- *
40
- * @return $this
41
- */
42
- public function setCanceledBy (array $ canceledBy ): self
43
- {
44
- $ this ->canceledBy = $ canceledBy ;
45
-
46
- return $ this ;
47
- }
48
-
49
32
/**
50
33
* @return $this
51
34
*/
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ protected function setUp(): void
22
22
public function testGetAllBatches (): void
23
23
{
24
24
$ response = $ this ->client ->getBatches ();
25
- self ::assertIsArray ( $ response ->getResults ());
25
+ self ::assertGreaterThan ( 0 , $ response ->getTotal ());
26
26
}
27
27
28
28
public function testGetAllBatchesWithIndexUidFilters (): void
@@ -37,19 +37,19 @@ public function testGetAllBatchesWithTasksFilters(): void
37
37
{
38
38
$ tasks = $ this ->client ->getTasks (new TasksQuery ())->getResults ();
39
39
$ response = $ this ->client ->getBatches ((new BatchesQuery ())->setUids ([$ tasks [0 ]['uid ' ]]));
40
- self ::assertNotNull ( $ response ->getResults ());
40
+ self ::assertGreaterThan ( 0 , $ response ->getTotal ());
41
41
}
42
42
43
43
public function testGetAllBatchesInReverseOrder (): void
44
44
{
45
45
$ startDate = new \DateTimeImmutable ('now ' );
46
46
47
47
$ batches = $ this ->client ->getBatches ((new BatchesQuery ())
48
- ->setAfterEnqueuedAt ($ startDate )
48
+ ->setAfterEnqueuedAt ($ startDate )
49
49
);
50
50
$ reversedBatches = $ this ->client ->getBatches ((new BatchesQuery ())
51
- ->setAfterEnqueuedAt ($ startDate )
52
- ->setReverse (true )
51
+ ->setAfterEnqueuedAt ($ startDate )
52
+ ->setReverse (true )
53
53
);
54
54
self ::assertSame ($ batches ->getResults (), array_reverse ($ reversedBatches ->getResults ()));
55
55
}
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public function getAllTasksClientWithBatchFilter(): void
85
85
->setBatchUid ($ task ['uid ' ])
86
86
);
87
87
88
- self ::assertIsArray ( $ response ->getResults ());
88
+ self ::assertGreaterThan ( 0 , $ response ->getTotal ());
89
89
}
90
90
91
91
public function testGetOneTaskIndex (): void
You can’t perform that action at this time.
0 commit comments