open-orchestra/open-orchestra-media-admin-bundle

View on GitHub
MediaAdminBundle/Tests/Form/Type/SiteForFolderChoiceTypeTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method setUp has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function setUp()
    {
        $this->site1 = Phake::mock('OpenOrchestra\ModelInterface\Model\SiteInterface');
        Phake::when($this->site1)->getSiteId()->thenReturn($this->siteId1);
        Phake::when($this->site1)->getName()->thenReturn($this->siteName1);
Severity: Minor
Found in MediaAdminBundle/Tests/Form/Type/SiteForFolderChoiceTypeTest.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status