mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Обновлены тесты для всех форм, что отправляли письма
This commit is contained in:
32
tests/codeception/common/_support/queue/Queue.php
Normal file
32
tests/codeception/common/_support/queue/Queue.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
namespace tests\codeception\common\_support\queue;
|
||||
|
||||
use yii\base\NotSupportedException;
|
||||
use yii\queue\Queue as BaseQueue;
|
||||
|
||||
class Queue extends BaseQueue {
|
||||
|
||||
private $messages = [];
|
||||
|
||||
public function push($job) {
|
||||
$this->messages[] = $job;
|
||||
}
|
||||
|
||||
public function status($id) {
|
||||
throw new NotSupportedException('Status is not supported in the driver.');
|
||||
}
|
||||
|
||||
public function getMessages() {
|
||||
return $this->messages;
|
||||
}
|
||||
|
||||
protected function pushMessage($message, $ttr, $delay, $priority) {
|
||||
// This function is abstract, but will be not called
|
||||
}
|
||||
|
||||
public function __set($name, $value) {
|
||||
// Yii2 components may contains some configuration
|
||||
// But we just ignore it for this mock component
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user