8000 Error: Call to undefined method createMock() · Issue #20948 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Error: Call to undefined method createMock() #20948
Closed
@GCalmels

Description

@GCalmels
Q A
Bug report? yes
Feature request? no
BC Break report? no
Symfony version 2.8.15

I tried to test a FormType with invalid_message and I followed the doc for adding extensions.

I got this error :

Error: Call to undefined method AppBundle\Test\Form\Type\AlertTypeTest::createMock()

...AppBundle/Tests/Form/Type/AlertTypeTest.php:18
...vendor/symfony/symfony/src/Symfony/Component/Form/Test/FormIntegrationTestCase.php:30
...vendor/symfony/symfony/src/Symfony/Component/Form/Test/TypeTestCase.php:31

And if I change createMock by getMock, I had an other error :
Call to a member function addConstraint() on null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0