removing more ticket-stuff; update all unit-tests

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-19 19:42:50 +01:00
parent 60f1db5caf
commit 26510f0745
63 changed files with 537 additions and 1579 deletions

View File

@@ -1,8 +1,12 @@
<?php
use PHPUnit\Framework\TestCase;
use Froxlor\Database\Database;
use Froxlor\Api\FroxlorRPC;
/**
* @covers FroxlorRPC
*
* @covers \Froxlor\Api\FroxlorRPC
*/
class FroxlorRpcTest extends TestCase
{
@@ -84,7 +88,9 @@ class FroxlorRpcTest extends TestCase
'apikey' => 'test',
'secret' => 'test'
],
'body' => ['command' => 'Froxlor']
'body' => [
'command' => 'Froxlor'
]
));
}
@@ -97,7 +103,9 @@ class FroxlorRpcTest extends TestCase
'apikey' => 'test',
'secret' => 'test'
],
'body' => ['command' => 'SomeModule.cmd']
'body' => [
'command' => 'SomeModule.cmd'
]
));
}
@@ -108,7 +116,9 @@ class FroxlorRpcTest extends TestCase
'apikey' => 'test',
'secret' => 'test'
],
'body' => ['command' => 'Froxlor.listFunctions']
'body' => [
'command' => 'Froxlor.listFunctions'
]
));
$this->assertEquals('Froxlor', $result['command']['class']);
$this->assertEquals('listFunctions', $result['command']['method']);