This topic contains 8 replies, has 3 voices, and was last updated by Kacper 4 years, 4 months ago.
- Topic
Hi,
I extended ContentNode entity adding a new field ‘image’. And on my custom frontend controller I’m passing the image to the view. And everything is working as intended.
My problem now is that I’m writing a functional test for my controller and I’m having this issue when it executes the request:1Neither the property "image" nor one of the methods "image()", "getimage()"/"isimage()" or "__call()" exist and have public access in class "Oro\Bundle\WebCatalogBundle\Entity\ContentNode".The ‘image’ is called on my twig file, of my custom page, and this is a twig exception.
Looks like on functional tests there are no access to extended generated classes, am I right?
An approach I tried was create a Stub class that extends ContentNode, but I got the error ‘Class ContentNodeStub not found’.
Are there a way to solve this? How can we access custom fields (added to core entities) on functional tests?
Thanks.
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.