Fixed test suite execution in 5.3.

This commit is contained in:
Klaus Silveira
2018-05-18 19:47:20 -04:00
parent 3bbd29847d
commit 50c0b12be0

View File

@@ -9,8 +9,8 @@ class RepositoryTest extends TestCase
{
public function testIsSanitizingSearchWithPager()
{
$client = $this->prophesize(Client::class);
$client->run(Argument::type(Repository::class), "grep -i --line-number -- '=sleep 5;' master")->shouldBeCalled();
$client = $this->prophesize('GitList\Git\Client');
$client->run(Argument::type('GitList\Git\Repository'), "grep -i --line-number -- '=sleep 5;' master")->shouldBeCalled();
$repository = new Repository('/tmp', $client->reveal());
$repository->searchTree('--open-files-in-pager=sleep 5;', 'master');
@@ -19,8 +19,8 @@ class RepositoryTest extends TestCase
public function testIsSanitizingSearchWithAnyOption()
{
$client = $this->prophesize(Client::class);
$client->run(Argument::type(Repository::class), "grep -i --line-number -- 'foobar =bar;' foo")->shouldBeCalled();
$client = $this->prophesize('GitList\Git\Client');
$client->run(Argument::type('GitList\Git\Repository'), "grep -i --line-number -- 'foobar =bar;' foo")->shouldBeCalled();
$repository = new Repository('/tmp', $client->reveal());
$repository->searchTree('foobar --bar --foo=bar;', 'foo');