ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 1 year, 6 months ago.

  • Creator
    Topic
  • #17193
    Paul Stoica
    Paul Stoica
    Participant

    Hi,

    How to create a new configurable test entity wich contains also a table in the test database, also this entity will be available only in test mode?

    Is this possible, or is a way to do that?

    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #17195
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello.

    The easiest way to do that is to create bundle with migrations and register it only in test environment – this is exactly how OroTestFrameworkBundle works.

    #17197
    Paul Stoica
    Paul Stoica
    Participant

    I see,

    I thought that is a way: how datafixtures are loaded; inside the Tests folder(as Migrations), and there to be all my Migrations with versions. I think it will be a good improvement in future, to create your own test Entities and Migrations and to be loaded only in test environment(It’s only my opinion).

    Thank you.

    #17199
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Thank you for good idea. Probably, we’ll use this approach when we’ll need a lot of test entities.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.