Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

codeception assertTrue() equivalent?

Tags:

codeception

I've gone through the documentation several times, and through the source, and it doesn't work.

I'm looking for the Codeception equivalent of PHPUnit's "this->assertTrue($var)".

According to the documentation, just like that is should work, but it doesn't, "undefined method". Which helper, module or whatever do I have to activate?

like image 241
Tom Avatar asked Dec 03 '22 21:12

Tom


1 Answers

Did you enabled the module 'asserts' in the corresponding suite.yml file? Like:

class_name: UnitTester
    modules:
        enabled: [Asserts, UnitHelper]
like image 56
mcode Avatar answered Dec 11 '22 11:12

mcode