mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
28 lines
596 B
PHP
28 lines
596 B
PHP
<?php
|
|
|
|
|
|
namespace Box\Mod\Example\Api;
|
|
|
|
|
|
class AdminTest extends \PHPUnit_Framework_TestCase {
|
|
|
|
/**
|
|
* @var \Box\Mod\Example\Api\Admin
|
|
*/
|
|
protected $api = null;
|
|
|
|
public function setup()
|
|
{
|
|
$this->api= new \Box\Mod\Example\Api\Admin();
|
|
}
|
|
|
|
public function testget_something()
|
|
{
|
|
$data = array('microsoft' => '');
|
|
$expected = array('apple', 'google', 'facebook', 'microsoft');
|
|
$result = $this->api->get_something($data);
|
|
$this->assertInternalType('array', $result);
|
|
$this->assertEquals($expected, $result);
|
|
}
|
|
}
|
|
|