Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problem with functional test #1278

@Sabonar

Description

@Sabonar

Hello. Due to implementing test case i faced some problem:


❯ php bin/phpunit
PHPUnit 8.2.5 by Sebastian Bergmann and contributors.

Testing Project Test Suite
E 1 / 1 (100%)

Time: 5.59 seconds, Memory: 50.25 MB

There was 1 error:

1) App\Tests\Functional\FooResourceTest::testCreateFoo
TypeError: Argument 1 passed to ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client::__construct() must be an instance of Symfony\Bundle\FrameworkBundle\KernelBrowser, instance of Symfony\Bundle\FrameworkBundle\Client given, called in /Projects/ProjectName/var/cache/test/ContainerGLLQM1K/getTest_ApiPlatform_ClientService.php on line 19

Actually i don't know what is wrong with my configs. I have Api platform 2.5 and symfony 4.3

Regards,
Alexander

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions