Files
Froxlor/tests/Global/ApiParameterTest.php
Michael Kaufmann 26510f0745 removing more ticket-stuff; update all unit-tests
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2018-12-19 19:42:50 +01:00

23 lines
503 B
PHP

<?php
use PHPUnit\Framework\TestCase;
use Froxlor\Api\Commands\Froxlor;
/**
*
* @covers \Froxlor\Api\ApiCommand
* @covers \Froxlor\Api\ApiParameter
* @covers \Froxlor\Froxlor
*/
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();
}
}