Completed
Push — master ( b3079f...65c6d8 )
by
unknown
02:54
created

Controller/MediaControllerTest.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace OpenOrchestra\FunctionalTests\MediaAdminBundle\Controller;
4
5
use OpenOrchestra\FunctionalTests\Utils\AbstractFormTest;
6
7
/**
8
 * Class MediaControllerTest
9
 *
10
 * @group media
11
 */
12
class MediaControllerTest extends AbstractFormTest
13
{
14
    protected $media;
15
16
    /**
17
     * Set up the test
18
     */
19
    public function setUp()
20
    {
21
        parent::setUp();
22
23
        $mediaRepository = static::$kernel->getContainer()->get('open_orchestra_media.repository.media');
24
        $this->media = $mediaRepository->findOneByName('logo Open-Orchestra');
25
    }
26
27
    /**
28
     * @param string $form
0 ignored issues
show
There is no parameter named $form. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
29
     */
30
    public function testMediaForms()
31
    {
32
        $url = '/admin/media/' . $this->media->getId();
33
34
        $this->client->request('GET', $url);
35
36
        $this->assertForm($this->client->getResponse());
37
    }
38
}
39