We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a33c45 commit 88818ecCopy full SHA for 88818ec
tests/Gitonomy/Git/Tests/AdminTest.php
@@ -100,6 +100,23 @@ public function testMirror($repository)
100
}
101
102
103
+ /**
104
+ * @dataProvider provideFoobar
105
+ */
106
+ public function testCheckValidRepository($repository)
107
+ {
108
+ $url = $repository->getGitDir();
109
+ $this->assertTrue(Admin::isValidRepository($url));
110
+ }
111
+
112
+ public function testCheckInvalidRepository()
113
114
+ $url = $this->tmpDir.'/invalid.git';
115
+ mkdir($url);
116
117
+ $this->assertFalse(Admin::isValidRepository($url));
118
119
120
/**
121
* @expectedException RuntimeException
122
*/
0 commit comments