added new ApiParameterTest

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-04-01 10:35:55 +02:00
parent 697d972fba
commit 060115c5e9

View File

@@ -0,0 +1,18 @@
<?php
use PHPUnit\Framework\TestCase;
/**
* @covers ApiParameter
*/
class ApiParameterTest extends TestCase
{
public function testMissingRequiredParameter()
{
global $admin_userdata;
$this->expectExceptionCode(404);
$this->expectExceptionMessage('Requested parameter "key" could not be found for "Froxlor:getSetting"');
Froxlor::getLocal($admin_userdata)->getSetting();
}
}