Yii Framework Forum: Custom Mailer for tests - Yii Framework Forum

Jump to content

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

Custom Mailer for tests

#1 User is offline   ateshabaev 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 19-August 15

Posted 23 August 2017 - 10:31 AM

I'm overriding Mailer class with my own and use it to create queue of emails.

When I run tests, it seems to be using another class (Codeception\Lib\Connector\Yii2\TestMailer), which I understood form this Exception:

[yii\base\UnknownMethodException] Calling unknown method: Codeception\Lib\Connector\Yii2\TestMailer:


And the questions is the following: how to set custom Mailing class for tests? Where do I need to set it up?
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 27 August 2017 - 05:28 PM

https://github.com/y...i2/issues/14718
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   ateshabaev 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 19-August 15

Posted 28 August 2017 - 02:14 AM

View Postsamdark, on 27 August 2017 - 05:28 PM, said:



This is my own issue :)
0

#4 User is offline   ateshabaev 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 19-August 15

Posted 28 August 2017 - 04:39 AM

Solved in https://github.com/y...mment-325304020
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