File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,18 @@ public function testGetAllTasksClientWithPagination(): void
76
76
self ::assertSame ([], $ response ->getResults ());
77
77
}
78
78
79
+ public function getAllTasksClientWithBatchFilter (): void
80
+ {
81
+ [$ promise , $ response ] = $ this ->seedIndex ();
82
+ $ task = $ this ->client ->getTask ($ promise ['taskUid ' ]);
83
+
84
+ $ response = $ this ->client ->getTasks ((new TasksQuery ())
85
+ ->setBatchUid ($ task ['uid ' ])
86
+ );
87
+
88
+ self ::assertIsArray ($ response ->getResults ());
89
+ }
90
+
79
91
public function testGetOneTaskIndex (): void
80
92
{
81
93
[$ promise , $ response ] = $ this ->seedIndex ();
@@ -126,20 +138,6 @@ public function testGetAllTasksByIndexWithFilter(): void
126
138
self ::assertGreaterThan (0 , $ response ->getTotal ());
127
139
}
128
140
129
- public function getAllTasksByBatchFilter (): void
130
- {
131
- [$ promise , $ response ] = $ this ->seedIndex ();
132
-
133
- self ::assertIsArray ($ promise );
134
- $ task = $ this ->client ->getTask ($ promise ['taskUid ' ]);
135
-
136
- $ response = $ this ->client ->getTasks ((new TasksQuery ())
137
- ->setBatchUid ($ task ['uid ' ])
138
- );
139
-
140
- self ::assertIsArray ($ response ->getResults ());
141
- }
142
-
143
141
public function testCancelTasksWithFilter (): void
144
142
{
145
143
$ date = new \DateTime ('yesterday ' );
You can’t perform that action at this time.
0 commit comments