Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 4372955

Browse files
author
alexandresalome
committed
use foobar as test repository
1 parent d5796df commit 4372955

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/Gitonomy/Browser/Tests/Functionnal/ControllerTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@
22

33
use Silex\WebTestCase;
44

5+
use Gitonomy\Browser\Git\Repository;
6+
use Gitonomy\Git\Admin;
7+
58
class ApplicationTest extends WebTestCase
69
{
10+
const TEST_REPOSITORY = '[email protected]:gitonomy/foobar.git';
11+
12+
static public function createRepository()
13+
{
14+
$tmp = sys_get_temp_dir().'gitonomybrowser_foobar';
15+
if (!is_dir($tmp)) {
16+
Admin::cloneTo($tmp, self::TEST_REPOSITORY);
17+
}
18+
19+
return new Repository($tmp);
20+
}
21+
722
public function createApplication()
823
{
924
$rootDir = __DIR__.'/../../../../..';

0 commit comments

Comments
 (0)