From 98bfaeaf533c01da69b41ab42ddea980d44dfc5c Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 26 Apr 2024 16:53:18 +0100 Subject: [PATCH] =?UTF-8?q?Check=20if=20a=20broadcast=20exists=20on=20the?= =?UTF-8?q?=20empty=20account,=20as=20there=E2=80=99s=20still=20a=20stuck?= =?UTF-8?q?=20broadcast=20there?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/wpunit/APINoDataTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/wpunit/APINoDataTest.php b/tests/wpunit/APINoDataTest.php index 24e2649..a7ef44a 100644 --- a/tests/wpunit/APINoDataTest.php +++ b/tests/wpunit/APINoDataTest.php @@ -252,7 +252,9 @@ public function testGetProducts() public function testGetBroadcasts() { $result = $this->api->get_broadcasts(); - $this->assertNoData($result, 'broadcasts'); + $this->assertNotInstanceOf(WP_Error::class, $result); + $this->assertIsArray($result); + $this->assertCount(1, $result); } /**