mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-02-10 00:27:26 +01:00
Attempt to fix test for repo without master branch.
Without a working test environment, it's hard to be confident it will succeed, but it's certainly a step closer to correct.
This commit is contained in:
@@ -82,6 +82,7 @@ class InterfaceTest extends WebTestCase
|
||||
// master-less repository fixture
|
||||
$git->createRepository(self::$tmpdir . 'masterless');
|
||||
$repository = $git->getRepository(self::$tmpdir . 'masterless');
|
||||
$repository->createBranch("develop");
|
||||
$repository = $repository->checkout('develop');
|
||||
file_put_contents(self::$tmpdir . 'masterless/README.md', "## masterless\nmasterless is a *test* repository!");
|
||||
file_put_contents(self::$tmpdir . 'masterless/test.php', "<?php\necho 'Hello World'; // This is a test");
|
||||
|
||||
Reference in New Issue
Block a user