mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
Fix queue config interfering with unit tests
This commit is contained in:
parent
eebd9a0005
commit
746afdacb3
3 changed files with 40 additions and 8 deletions
|
|
@ -2,6 +2,19 @@
|
|||
|
||||
class SMSTest extends \Codeception\Test\Unit
|
||||
{
|
||||
protected $_prev_queue_config;
|
||||
|
||||
public function _before()
|
||||
{
|
||||
$this->_prev_queue_config = config('queue');
|
||||
config('queue.enabled', false);
|
||||
}
|
||||
|
||||
public function _after()
|
||||
{
|
||||
config('queue', $this->_prev_queue_config);
|
||||
}
|
||||
|
||||
public function testGetSetDefaultDriver()
|
||||
{
|
||||
$driver = Rhymix\Framework\SMS::getDefaultDriver();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue