How To Test A Yii Extension?

Hello everyone.

How can i test a Yii Extension? I mean, do i need to configure all codeception in every extension or there’s a different way?

I looked at the yiisoft github but i didn’t find any extension with a tested code (unit).

And what is the best (or indicated) folder structure?

Thank you

Codeception is meant for testing application as a whole (except unit tests). Extension can’t be really tested as such so it leaves you with phpunit and unit tests.