SMSFlySourceTest

Extends \CakeTestCase

SMSFlySourceTest

package

SMSFlySourceTest

subpackage

Model

Methods

Mock connection for test purposes

_mockConnection(array $request, string $response) 

Arguments

$request

array

$response

string

Data provider for testGetBalance

getBalanceProvider() : array

Response

array

Data provider for testGetDetails

getDetailsProvider() : array

Response

array

Data provider for testGetDetails

getInfoProvider() : array

Response

array

Data provider for testGetMessageStatus

getMessageStatusProvider() : array

Response

array

Data provider for testSendSMS

sendSMSProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test get balance

testGetBalance(array $request, string $response, float $result) 
dataProvider

getBalanceProvider

Arguments

$request

array

$response

string

$result

float

Test get message details

testGetDetails(string $id, array $request, string $response, float $result) 
dataProvider

getDetailsProvider

Arguments

$id

string

$request

array

$response

string

$result

float

Test get info

testGetInfo(string $id, array $request, string $response, float $result) 
dataProvider

getInfoProvider

Arguments

$id

string

$request

array

$response

string

$result

float

Test get message status

testGetMessageStatus(string $id, string $recipient, array $request, string $response, float $result) 
dataProvider

getMessageStatusProvider

Arguments

$id

string

$recipient

string

$request

array

$response

string

$result

float

Test send sms

testSendSMS(string $source, array $messages, string $desc, integer $rate, integer $lifetime, string $endTime, string $startTime, array $request, string $response, array $result) 
dataProvider

sendSMSProvider

Arguments

$source

string

$messages

array

$desc

string

$rate

integer

$lifetime

integer

$endTime

string

$startTime

string

$request

array

$response

string

$result

array

Properties

SMSFlySource Model

Model : \AppModel
var

Type(s)

\AppModel