ModelBundle/Tests/EventListener/GeneratePathListenerTest.php
Method provideNodeForRecord
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideNodeForRecord()
{
$node0 = Phake::mock('OpenOrchestra\ModelBundle\Document\Node');
Phake::when($node0)->getNodeId()->thenReturn('fakeId');
Phake::when($node0)->getPath()->thenReturn('fakeParentPath/fakePastId');
- Create a ticketCreate a ticket
Method testRecord
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function testRecord($method, Node $node, Node $parentNode, ArrayCollection $children, $expectedPath)
- Create a ticketCreate a ticket