mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +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()
|
public function testIsSanitizingSearchWithPager()
|
||||||
{
|
{
|
||||||
$client = $this->prophesize(Client::class);
|
$client = $this->prophesize('GitList\Git\Client');
|
||||||
$client->run(Argument::type(Repository::class), "grep -i --line-number -- '=sleep 5;' master")->shouldBeCalled();
|
$client->run(Argument::type('GitList\Git\Repository'), "grep -i --line-number -- '=sleep 5;' master")->shouldBeCalled();
|
||||||
|
|
||||||
$repository = new Repository('/tmp', $client->reveal());
|
$repository = new Repository('/tmp', $client->reveal());
|
||||||
$repository->searchTree('--open-files-in-pager=sleep 5;', 'master');
|
$repository->searchTree('--open-files-in-pager=sleep 5;', 'master');
|
||||||
@@ -19,8 +19,8 @@ class RepositoryTest extends TestCase
|
|||||||
|
|
||||||
public function testIsSanitizingSearchWithAnyOption()
|
public function testIsSanitizingSearchWithAnyOption()
|
||||||
{
|
{
|
||||||
$client = $this->prophesize(Client::class);
|
$client = $this->prophesize('GitList\Git\Client');
|
||||||
$client->run(Argument::type(Repository::class), "grep -i --line-number -- 'foobar =bar;' foo")->shouldBeCalled();
|
$client->run(Argument::type('GitList\Git\Repository'), "grep -i --line-number -- 'foobar =bar;' foo")->shouldBeCalled();
|
||||||
|
|
||||||
$repository = new Repository('/tmp', $client->reveal());
|
$repository = new Repository('/tmp', $client->reveal());
|
||||||
$repository->searchTree('foobar --bar --foo=bar;', 'foo');
|
$repository->searchTree('foobar --bar --foo=bar;', 'foo');
|
||||||
|
|||||||
Reference in New Issue
Block a user