aboutsummaryrefslogtreecommitdiffstats
path: root/library/kzykhys/git/test/PHPGit/Command/Remote/SetBranchesCommandTest.php
blob: 4f428f832ceb530b6cbe2d850c85d3aad3e87e93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

use PHPGit\Git;

require_once __DIR__ . '/../../BaseTestCase.php';

class SetBranchesCommandTest extends BaseTestCase
{

    public function testSetBranches()
    {
        $git = new Git();
        $git->clone('https://github.com/kzykhys/Text.git', $this->directory);
        $git->setRepository($this->directory);

        $git->remote->branches('origin', array('master'));
    }

    public function testSetBranchesAdd()
    {
        $git = new Git();
        $git->clone('https://github.com/kzykhys/Text.git', $this->directory);
        $git->setRepository($this->directory);

        $git->remote->branches->add('origin', array('gh-pages'));
    }

}