-
Notifications
You must be signed in to change notification settings - Fork 29
Fixed touch command #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,35 @@ | |
|
||
abstract class BaseCommandTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** @var SessionInterface|\PHPUnit_Framework_MockObject_MockObject */ | ||
protected $session; | ||
/** @var WorkspaceInterface|\PHPUnit_Framework_MockObject_MockObject */ | ||
protected $workspace; | ||
/** @var RepositoryInterface|\PHPUnit_Framework_MockObject_MockObject */ | ||
protected $repository; | ||
/** @var PhpcrConsoleDumperHelper|\PHPUnit_Framework_MockObject_MockObject */ | ||
protected $dumperHelper; | ||
/** @var HelperSet */ | ||
protected $helperSet; | ||
/** @var Application */ | ||
protected $application; | ||
/** | ||
* @var SessionInterface|\PHPUnit_Framework_MockObject_MockObject | ||
* */ | ||
public $session; | ||
|
||
/** | ||
* @var WorkspaceInterface|\PHPUnit_Framework_MockObject_MockObject | ||
*/ | ||
public $workspace; | ||
|
||
/** | ||
* @var RepositoryInterface|\PHPUnit_Framework_MockObject_MockObject | ||
*/ | ||
public $repository; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dbu changed the annotations to be in proper CS - hope thats ok. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah that is correct. its just tests, otherwise i would say those should be protected and not public. |
||
|
||
/** | ||
* @var PhpcrConsoleDumperHelper|\PHPUnit_Framework_MockObject_MockObject | ||
*/ | ||
public $dumperHelper; | ||
|
||
/** | ||
* @var HelperSet | ||
*/ | ||
public $helperSet; | ||
|
||
/** | ||
* @var Application | ||
*/ | ||
public $application; | ||
|
||
public function setUp() | ||
{ | ||
|
@@ -50,6 +67,10 @@ public function setUp() | |
'phpcr_console_dumper' => $this->dumperHelper, | ||
)); | ||
|
||
$this->phpcrCliHelper = $this->getMockBuilder('PHPCR\Util\Console\Helper\PhpcrCliHelper') | ||
->disableOriginalConstructor() | ||
->getMock(); | ||
|
||
$this->session->expects($this->any()) | ||
->method('getWorkspace') | ||
->will($this->returnValue($this->workspace)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should really refactor the helper logic and get them working with both DoctrinePhpcrBundle and phpcr-utils vanilla.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 - not in this PR but i really would want to fix that stuff up, its quite a mess atm. see #74