Yii Framework Forum: Undefined Method setGroups() in Codeception Unit Tests - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Undefined Method setGroups() in Codeception Unit Tests

#1 User is offline   ThomiLee 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-January 17

Posted 18 January 2017 - 04:55 AM

I have a clean Yii2 advanced-template Application installed. Codecept run command gives me the following fatal error:

Quote

Call to undefined method common\tests\unit\models\LoginFormTest:setGroups() in <myWebroot>\vendor\phpunit\src\Framework\TestSuite.php on line 229.
Any ideas what I am doing wrong?
0

#2 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,462
  • Joined: 04-October 10

Posted 14 June 2017 - 12:29 PM

View PostThomiLee, on 18 January 2017 - 04:55 AM, said:

I have a clean Yii2 advanced-template Application installed. Codecept run command gives me the following fatal error:
Any ideas what I am doing wrong?


Are you using a global version of composer instead of the one at 'vendor/bin' folder? It seems you have latest version of composer on your global scope. Do the following:

./vendor/bin/codecept run 

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users