Add SMS drivers for apistore, cafe24, ppurio

This commit is contained in:
Kijin Sung 2020-06-24 22:12:10 +09:00
parent d68770a3ef
commit dcbd5ff9b6
4 changed files with 367 additions and 0 deletions

View file

@ -16,15 +16,22 @@ class SMSTest extends \Codeception\TestCase\Test
{
$drivers = Rhymix\Framework\SMS::getSupportedDrivers();
$this->assertTrue(isset($drivers['dummy']));
$this->assertTrue(isset($drivers['apistore']));
$this->assertTrue(isset($drivers['cafe24']));
$this->assertTrue(isset($drivers['coolsms']));
$this->assertTrue(isset($drivers['solapi']));
$this->assertTrue(isset($drivers['ppurio']));
$this->assertEquals('Dummy', $drivers['dummy']['name']);
$this->assertTrue(in_array('api_user', $drivers['apistore']['required']));
$this->assertTrue(in_array('api_user', $drivers['cafe24']['required']));
$this->assertTrue(in_array('api_key', $drivers['coolsms']['required']));
$this->assertTrue(in_array('api_user', $drivers['ppurio']['required']));
$this->assertTrue(in_array('api_key', $drivers['solapi']['required']));
$this->assertTrue($drivers['coolsms']['api_spec']['mms_supported']);
$this->assertTrue($drivers['coolsms']['api_spec']['delay_supported']);
$this->assertTrue($drivers['solapi']['api_spec']['mms_supported']);
$this->assertTrue($drivers['solapi']['api_spec']['delay_supported']);
$this->assertFalse($drivers['cafe24']['api_spec']['mms_supported']);
}
public function testSenderAndRecipients()