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']); } /**