Fix queue config interfering with unit tests

This commit is contained in:
Kijin Sung 2024-12-12 21:37:53 +09:00
parent eebd9a0005
commit 746afdacb3
3 changed files with 40 additions and 8 deletions

View file

@ -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();