How to use fixtures inside Rest API testing

I have used fixtures inside unit tests successfully but there is no info on how to use fixtures inside API testing. How to do it?

Do you mean Codeception? https://codeception.com/for/yii

1 Like

Yes, I am using Codeception. When I am doing API Tests using Codeception, could not find any information on how to use (or how to load) fixtures inside API Tests. For example, in unit testing, it can be done like this (from documentation):

Should be the same if fixtures modue is enabled.

1 Like

Thank you, after adding a fixture to the api.suite.yml file, it worked)
image