Files
FOSSBilling/tests/modules/Example/Api/AdminTest.php
T
2022-11-28 17:22:50 +03:00

28 lines
572 B
PHP

<?php
namespace Box\Mod\Example\Api;
class AdminTest extends \BBTestCase {
/**
* @var \Box\Mod\Example\Api\Admin
*/
protected $api = null;
public function setup(): void
{
$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->assertIsArray($result);
$this->assertEquals($expected, $result);
}
}