@@ -1540,10 +1540,6 @@ public function testQueryThreadsWithFilter()
15401540 // Verify the response
15411541 $ this ->assertTrue (array_key_exists ("threads " , (array )$ response ));
15421542 $ this ->assertGreaterThanOrEqual (1 , count ($ response ["threads " ]));
1543-
1544- // Clean up
1545- $ this ->channel ->deleteMessage ($ threadMessage ["message " ]["id " ]);
1546- $ this ->channel ->deleteMessage ($ parentMessage ["message " ]["id " ]);
15471543 }
15481544
15491545 public function testQueryThreadsWithSort ()
@@ -1571,12 +1567,6 @@ public function testQueryThreadsWithSort()
15711567 // Verify the response
15721568 $ this ->assertTrue (array_key_exists ("threads " , (array )$ response ));
15731569 $ this ->assertGreaterThanOrEqual (2 , count ($ response ["threads " ]));
1574-
1575- // Clean up
1576- $ this ->channel ->deleteMessage ($ threadMessage1 ["message " ]["id " ]);
1577- $ this ->channel ->deleteMessage ($ parentMessage1 ["message " ]["id " ]);
1578- $ this ->channel ->deleteMessage ($ threadMessage2 ["message " ]["id " ]);
1579- $ this ->channel ->deleteMessage ($ parentMessage2 ["message " ]["id " ]);
15801570 }
15811571
15821572 public function testQueryThreadsWithFilterAndSort ()
@@ -1604,12 +1594,6 @@ public function testQueryThreadsWithFilterAndSort()
16041594 // Verify the response
16051595 $ this ->assertTrue (array_key_exists ("threads " , (array )$ response ));
16061596 $ this ->assertGreaterThanOrEqual (2 , count ($ response ["threads " ]));
1607-
1608- // Clean up
1609- $ this ->channel ->deleteMessage ($ threadMessage1 ["message " ]["id " ]);
1610- $ this ->channel ->deleteMessage ($ parentMessage1 ["message " ]["id " ]);
1611- $ this ->channel ->deleteMessage ($ threadMessage2 ["message " ]["id " ]);
1612- $ this ->channel ->deleteMessage ($ parentMessage2 ["message " ]["id " ]);
16131597 }
16141598
16151599 public function testQueryThreadsWithoutFilterAndSort ()
@@ -1631,9 +1615,5 @@ public function testQueryThreadsWithoutFilterAndSort()
16311615 // Verify the response
16321616 $ this ->assertTrue (array_key_exists ("threads " , (array )$ response ));
16331617 $ this ->assertGreaterThanOrEqual (1 , count ($ response ["threads " ]));
1634-
1635- // Clean up
1636- $ this ->channel ->deleteMessage ($ threadMessage ["message " ]["id " ]);
1637- $ this ->channel ->deleteMessage ($ parentMessage ["message " ]["id " ]);
16381618 }
16391619}
0 commit comments