mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
34 lines
929 B
PHP
34 lines
929 B
PHP
<?php
|
|
/**
|
|
* @group Core
|
|
*/
|
|
class Api_Guest_SupportTest extends ApiTestCase
|
|
{
|
|
public function testContact()
|
|
{
|
|
$data = array(
|
|
'name' => 'This is me',
|
|
'email' => 'email@email.com',
|
|
'subject' => 'subject',
|
|
'message' => 'Message',
|
|
);
|
|
$hash = $this->api_guest->support_ticket_create($data);
|
|
$this->assertInternalType('string', $hash);
|
|
|
|
$data = array(
|
|
'hash' => $hash,
|
|
);
|
|
$array = $this->api_guest->support_ticket_get($data);
|
|
$this->assertInternalType('array', $array);
|
|
|
|
$data = array(
|
|
'hash' => $hash,
|
|
'message' => 'Hello',
|
|
);
|
|
$hash = $this->api_guest->support_ticket_reply($data);
|
|
$this->assertInternalType('string', $hash);
|
|
|
|
$bool = $this->api_guest->support_ticket_close($data);
|
|
$this->assertTrue($bool);
|
|
}
|
|
} |