We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c544e5a commit f59bb9dCopy full SHA for f59bb9d
1 file changed
tests/VCS/Adapter/GiteaTest.php
@@ -1443,6 +1443,21 @@ public function testListBranches(): void
1443
}
1444
1445
1446
+ public function testListBranchesEmptyRepo(): void
1447
+ {
1448
+ $repositoryName = 'test-list-branches-empty-' . \uniqid();
1449
+ $this->vcsAdapter->createRepository(static::$owner, $repositoryName, false);
1450
+
1451
+ try {
1452
+ $branches = $this->vcsAdapter->listBranches(static::$owner, $repositoryName);
1453
1454
+ $this->assertIsArray($branches);
1455
+ $this->assertEmpty($branches);
1456
+ } finally {
1457
+ $this->vcsAdapter->deleteRepository(static::$owner, $repositoryName);
1458
+ }
1459
1460
1461
public function testCreateTag(): void
1462
{
1463
$repositoryName = 'test-create-tag-' . \uniqid();
0 commit comments