Skip to content

Commit 09c3882

Browse files
committed
fix: update testListBranchesEmptyRepo assertions to structured shape
1 parent f85fa75 commit 09c3882

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/VCS/Adapter/GiteaTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ public function testListBranchesEmptyRepo(): void
7070
$this->vcsAdapter->createRepository($owner, $repositoryName, false);
7171

7272
try {
73-
$branches = $this->vcsAdapter->listBranches($owner, $repositoryName);
73+
$result = $this->vcsAdapter->listBranches($owner, $repositoryName);
7474

75-
$this->assertIsArray($branches);
76-
$this->assertEmpty($branches);
75+
$this->assertIsArray($result);
76+
$this->assertSame([], $result['items']);
77+
$this->assertFalse($result['hasNext']);
78+
$this->assertNull($result['nextCursor']);
7779
} finally {
7880
$this->vcsAdapter->deleteRepository($owner, $repositoryName);
7981
}

0 commit comments

Comments
 (0)