We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f85fa75 commit 09c3882Copy full SHA for 09c3882
1 file changed
tests/VCS/Adapter/GiteaTest.php
@@ -70,10 +70,12 @@ public function testListBranchesEmptyRepo(): void
70
$this->vcsAdapter->createRepository($owner, $repositoryName, false);
71
72
try {
73
- $branches = $this->vcsAdapter->listBranches($owner, $repositoryName);
+ $result = $this->vcsAdapter->listBranches($owner, $repositoryName);
74
75
- $this->assertIsArray($branches);
76
- $this->assertEmpty($branches);
+ $this->assertIsArray($result);
+ $this->assertSame([], $result['items']);
77
+ $this->assertFalse($result['hasNext']);
78
+ $this->assertNull($result['nextCursor']);
79
} finally {
80
$this->vcsAdapter->deleteRepository($owner, $repositoryName);
81
}
0 commit comments