From e78534efa6b3e1cb8a411a06a8c6a474eaacf67b Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 5 Nov 2024 21:49:43 +0700 Subject: [PATCH] Updated tests --- test/Manticoresearch/Endpoints/Nodes/TablesTest.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/Manticoresearch/Endpoints/Nodes/TablesTest.php b/test/Manticoresearch/Endpoints/Nodes/TablesTest.php index eb2b2b7d..d7438397 100644 --- a/test/Manticoresearch/Endpoints/Nodes/TablesTest.php +++ b/test/Manticoresearch/Endpoints/Nodes/TablesTest.php @@ -34,11 +34,10 @@ public function testTables() { $helper = new PopulateHelperTest(); $client = $helper->getClient(); $response = $client->nodes()->tables(); - // Adding extra try-catch to provide compatibility with previous Manticore versions - try { - $this->assertEquals(['products' => 'rt'], $response); - } catch (\Manticoresearch\Exceptions\ResponseException $e) { - $this->assertEquals(['test' => 'rt'], $response); - } + $result = [ + 'Table' => 'products', + 'Type' => 'rt', + ]; + $this->assertEquals($result, $response); } }