mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 03:00:59 +01:00
Fixed test suite execution in 5.3.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user