open-orchestra/open-orchestra-model-bundle

View on GitHub
ModelBundle/Tests/EventListener/GeneratePathListenerTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method provideNodeForRecord has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function provideNodeForRecord()
    {
        $node0 = Phake::mock('OpenOrchestra\ModelBundle\Document\Node');
        Phake::when($node0)->getNodeId()->thenReturn('fakeId');
        Phake::when($node0)->getPath()->thenReturn('fakeParentPath/fakePastId');
Severity: Minor
Found in ModelBundle/Tests/EventListener/GeneratePathListenerTest.php - About 1 hr to fix

Method testRecord has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function testRecord($method, Node $node, Node $parentNode, ArrayCollection $children, $expectedPath)
Severity: Minor
Found in ModelBundle/Tests/EventListener/GeneratePathListenerTest.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status