mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Allow adding arbitrary extra vars to SMS
This commit is contained in:
parent
98b32a2572
commit
f4c4ec5ec6
3 changed files with 63 additions and 0 deletions
|
|
@ -93,6 +93,19 @@ class SMSTest extends \Codeception\TestCase\Test
|
|||
$this->assertEquals('minify.target.css', $attachments[1]->display_filename);
|
||||
}
|
||||
|
||||
public function testSMSExtraVars()
|
||||
{
|
||||
$sms = new Rhymix\Framework\SMS;
|
||||
|
||||
$sms->setExtraVar('foo', 'bar');
|
||||
$this->assertEquals('bar', $sms->getExtraVar('foo'));
|
||||
$this->assertNull($sms->getExtraVar('nonexistent!'));
|
||||
$sms->setExtraVar('baz', 'moo');
|
||||
$this->assertEquals(array('foo' => 'bar', 'baz' => 'moo'), $sms->getExtraVars());
|
||||
$sms->setExtraVars(array('rhymix' => 'test'));
|
||||
$this->assertEquals(array('rhymix' => 'test'), $sms->getExtraVars());
|
||||
}
|
||||
|
||||
public function testSMSDelay()
|
||||
{
|
||||
$sms = new Rhymix\Framework\SMS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue