Skip to content

Commit

Permalink
Check if a broadcast exists on the empty account, as there’s still a …
Browse files Browse the repository at this point in the history
…stuck broadcast there
  • Loading branch information
n7studios committed Apr 26, 2024
1 parent e2b3225 commit 98bfaea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/wpunit/APINoDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 98bfaea

Please sign in to comment.