Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodCallWithReference is not correctly identified #1133

Open
template-provider opened this issue Mar 15, 2023 · 0 comments
Open

MethodCallWithReference is not correctly identified #1133

template-provider opened this issue Mar 15, 2023 · 0 comments

Comments

@template-provider
Copy link

template-provider commented Mar 15, 2023

I have something like this:

App\Tour:
    tour_{1..10}:
        __construct:
            applicationCountry: 'DE'
            number (unique): 'test-000<current()>'
            date: '<dateTimeBetween("+1 minutes", "+10 minutes")>'
            dcName: 'foo'
            stops: '@stop_collection'

App\Stops:
    stop_collection:
        __construct:
            stops:
             - '@stops_tour_1'

App\Stop:
    stops_{@tour_*}:
        __construct:
            id: '1'
            name: '11111111'
            street: 'blabla'
            city: 'berlin'
            zip: '12345'
            predictedTimeOfArrival: '<dateTimeBetween("+30 minutes", "+600 minutes")>'
            customerNumber: '0987654324'
            deliveryNumber: '0987654322'
            invoiceNumber: '0987654323'
            orders: '@order_collection'

App\Orders:
    order_collection:
        __construct:
            orders: '[@orders]'

App\Order:
    orders:
        __construct:
            orderNumber: '0987654321'
            temperatureRange: 1 

The SimpleFixture has a MethodCallWithReference wit method "stops" + arguments.
But it should be a SimpleMethodCall with method "__construct" + arguments.

With this annotation it works:

App\Stops:
    lisel_stop_collection:
        __construct:
            stops: '[@stops_tour_1]'

The problem is the array syntax, but because of this bug: #966 I cannot use this annotation.
We want to use something like this: "stops: '[@stops_tour_<numberBetween(1,10)>]'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant