open-orchestra/open-orchestra-media-bundle

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

Summary

Maintainability
A
1 hr
Test Coverage

Method provideFolderForRecord has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function provideFolderForRecord()
    {
        $parentPath    = '/parentPath';
        $folderId      = 'folderId';
        $oldFolderPath = $parentPath . '/oldId';
Severity: Minor
Found in MediaModelBundle/Tests/EventListener/GeneratePathListenerTest.php - About 1 hr to fix

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

        $method,
        MediaFolderInterface $folder,
        ArrayCollection $children,
        $expectedFolderPath,
        $expectedChildFolderPath
Severity: Minor
Found in MediaModelBundle/Tests/EventListener/GeneratePathListenerTest.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status