@@ -201,6 +201,11 @@ public function testGetCommentInvalidId(): void
201201 $ this ->vcsAdapter ->deleteRepository (self ::$ owner , $ repositoryName );
202202 }
203203
204+ public function testHasAccessToAllRepositories (): void
205+ {
206+ $ this ->assertTrue ($ this ->vcsAdapter ->hasAccessToAllRepositories ());
207+ }
208+
204209 public function testGetRepositoryTreeWithSlashInBranchName (): void
205210 {
206211 $ repositoryName = 'test-branch-with-slash- ' . \uniqid ();
@@ -878,15 +883,15 @@ public function testSearchRepositories(): void
878883
879884 try {
880885 // Search without filter - should return all
881- $ result = $ this ->vcsAdapter ->searchRepositories ('' , self ::$ owner , 1 , 10 );
886+ $ result = $ this ->vcsAdapter ->searchRepositories (self ::$ owner , 1 , 10 );
882887
883888 $ this ->assertIsArray ($ result );
884889 $ this ->assertArrayHasKey ('items ' , $ result );
885890 $ this ->assertArrayHasKey ('total ' , $ result );
886891 $ this ->assertGreaterThanOrEqual (3 , $ result ['total ' ]);
887892
888893 // Search with filter
889- $ result = $ this ->vcsAdapter ->searchRepositories ('' , self ::$ owner , 1 , 10 , 'test-search ' );
894+ $ result = $ this ->vcsAdapter ->searchRepositories (self ::$ owner , 1 , 10 , 'test-search ' );
890895
891896 $ this ->assertIsArray ($ result );
892897 $ this ->assertGreaterThanOrEqual (2 , $ result ['total ' ]);
@@ -911,15 +916,15 @@ public function testSearchRepositoriesPagination(): void
911916 $ this ->vcsAdapter ->createRepository (self ::$ owner , $ repo2 , false );
912917
913918 try {
914- $ result = $ this ->vcsAdapter ->searchRepositories ('' , self ::$ owner , 1 , 1 , 'test-pagination ' );
919+ $ result = $ this ->vcsAdapter ->searchRepositories (self ::$ owner , 1 , 1 , 'test-pagination ' );
915920
916921 $ this ->assertSame (1 , count ($ result ['items ' ]));
917922 $ this ->assertGreaterThanOrEqual (2 , $ result ['total ' ]);
918923
919- $ result2 = $ this ->vcsAdapter ->searchRepositories ('' , self ::$ owner , 2 , 1 , 'test-pagination ' );
924+ $ result2 = $ this ->vcsAdapter ->searchRepositories (self ::$ owner , 2 , 1 , 'test-pagination ' );
920925 $ this ->assertSame (1 , count ($ result2 ['items ' ]));
921926
922- $ result20 = $ this ->vcsAdapter ->searchRepositories ('' , self ::$ owner , 20 , 1 , 'test-pagination ' );
927+ $ result20 = $ this ->vcsAdapter ->searchRepositories (self ::$ owner , 20 , 1 , 'test-pagination ' );
923928 $ this ->assertIsArray ($ result20 );
924929 $ this ->assertEmpty ($ result20 ['items ' ]);
925930
@@ -931,7 +936,7 @@ public function testSearchRepositoriesPagination(): void
931936
932937 public function testSearchRepositoriesNoResults (): void
933938 {
934- $ result = $ this ->vcsAdapter ->searchRepositories ('' , self ::$ owner , 1 , 10 , 'nonexistent-repo-xyz- ' . \uniqid ());
939+ $ result = $ this ->vcsAdapter ->searchRepositories (self ::$ owner , 1 , 10 , 'nonexistent-repo-xyz- ' . \uniqid ());
935940
936941 $ this ->assertIsArray ($ result );
937942 $ this ->assertEmpty ($ result ['items ' ]);
@@ -940,7 +945,7 @@ public function testSearchRepositoriesNoResults(): void
940945
941946 public function testSearchRepositoriesInvalidOwner (): void
942947 {
943- $ result = $ this ->vcsAdapter ->searchRepositories ('' , ' nonexistent-owner- ' . \uniqid (), 1 , 10 );
948+ $ result = $ this ->vcsAdapter ->searchRepositories ('nonexistent-owner- ' . \uniqid (), 1 , 10 );
944949
945950 $ this ->assertIsArray ($ result );
946951 $ this ->assertEmpty ($ result ['items ' ]);
0 commit comments