Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Feb 3, 2025
1 parent 6f6419e commit 107a56f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/integrational/objects/member/MembersHappyPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MembersHappyPathTest extends PubNubTestCase
protected string $userName2 = "EpicFeastTime";
protected string $userName3 = "PiotrekOgi";

public function testHappyPath(): void
protected function cleanup(): void
{
// Cleanup
$staleMembers = [];
Expand All @@ -31,7 +31,12 @@ public function testHappyPath(): void
$this->assertInstanceOf(PNMembersResult::class, $cleanup);
$this->assertCount(0, $cleanup->getData());
}
}

public function testHappyPath(): void
{
$this->cleanup();
sleep(1);
$channelSetup = $this->pubnub->setChannelMetadata()
->channel($this->channel)
->meta([
Expand Down Expand Up @@ -112,6 +117,8 @@ public function testHappyPath(): void

$this->assertInstanceOf(PNMembersResult::class, $removeMembers);
$this->assertCount(0, $removeMembers->getData());
$this->cleanup();
sleep(1);
}

private function checkResponse(PNMembersResult $response): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public function testHappyPath(): void
$this->assertInstanceOf(PNMembershipsResult::class, $cleanup);
$this->assertCount(0, $cleanup->getData());
}
sleep(1);

$includes = new PNMembershipIncludes();
$includes->channel()->channelId()->channelCustom()->channelType()->channelStatus()->custom()->status()->type();

$addMembership = $this->pubnub->setMemberships()
->userId($this->user)
->memberships([
Expand Down

0 comments on commit 107a56f

Please sign in to comment.