Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Problem with functional test #1278

Copy link
Copy link
Closed
Closed
Copy link
@Sabonar

Description

@Sabonar
Issue body actions

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.