Files
Froxlor/tests/Global/ApiParameterTest.php
Michael Kaufmann (d00p) 060115c5e9 added new ApiParameterTest
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
2018-04-01 10:35:55 +02:00

19 lines
390 B
PHP

<?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();
}
}