From 0ab176413c51256e592eada33065fa76d57a2683 Mon Sep 17 00:00:00 2001 From: Strift Date: Wed, 4 Dec 2024 19:40:19 +0800 Subject: [PATCH] Rename test --- tests/Endpoints/TasksTest.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/tests/Endpoints/TasksTest.php b/tests/Endpoints/TasksTest.php index 5d5fe4f5..d8595c4a 100644 --- a/tests/Endpoints/TasksTest.php +++ b/tests/Endpoints/TasksTest.php @@ -76,6 +76,18 @@ public function testGetAllTasksClientWithPagination(): void self::assertSame([], $response->getResults()); } + public function getAllTasksClientWithBatchFilter(): void + { + [$promise, $response] = $this->seedIndex(); + $task = $this->client->getTask($promise['taskUid']); + + $response = $this->client->getTasks((new TasksQuery()) + ->setBatchUid($task['uid']) + ); + + self::assertIsArray($response->getResults()); + } + public function testGetOneTaskIndex(): void { [$promise, $response] = $this->seedIndex(); @@ -126,20 +138,6 @@ public function testGetAllTasksByIndexWithFilter(): void self::assertGreaterThan(0, $response->getTotal()); } - public function getAllTasksByBatchFilter(): void - { - [$promise, $response] = $this->seedIndex(); - - self::assertIsArray($promise); - $task = $this->client->getTask($promise['taskUid']); - - $response = $this->client->getTasks((new TasksQuery()) - ->setBatchUid($task['uid']) - ); - - self::assertIsArray($response->getResults()); - } - public function testCancelTasksWithFilter(): void { $date = new \DateTime('yesterday');