From eccff3572ed7bfd2145ac20203686eb291760a01 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 26 Apr 2024 16:56:29 +0100 Subject: [PATCH] Fix test --- tests/wpunit/APINoDataTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpunit/APINoDataTest.php b/tests/wpunit/APINoDataTest.php index a7ef44a..41c2285 100644 --- a/tests/wpunit/APINoDataTest.php +++ b/tests/wpunit/APINoDataTest.php @@ -253,8 +253,8 @@ public function testGetBroadcasts() { $result = $this->api->get_broadcasts(); $this->assertNotInstanceOf(WP_Error::class, $result); - $this->assertIsArray($result); - $this->assertCount(1, $result); + $this->assertIsArray($result['broadcasts']); + $this->assertCount(1, $result['broadcasts']); } /**