added requrest info test
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -238,4 +238,21 @@ class WebserviceTest extends TestCase
|
||||
)
|
||||
), $responseArray['result']);
|
||||
}
|
||||
|
||||
public function testWebserviceAddsAllRequestInfoToTheLog()
|
||||
{
|
||||
$_GET = array(
|
||||
'func' => 'someOtherMockFunction',
|
||||
'anyParamName2' => 'two',
|
||||
'anyParamName3' => 'threeOpt',
|
||||
'anyParamName1' => 'one',
|
||||
);
|
||||
|
||||
$this->webservice->run(false);
|
||||
$response = ob_get_clean();
|
||||
$this->assertSame(
|
||||
array('version', 'ip', 'date', 'func', 'error', 'status', 'time'),
|
||||
array_keys(Logger::getData())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user