mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-11 12:58:44 -04:00
removing duplicate code, cleanup of temporary test files
This commit is contained in:
parent
6db9dae66b
commit
f7853cf439
6 changed files with 85 additions and 98 deletions
|
@ -63,6 +63,7 @@ class RequestTest extends PHPUnit_Framework_TestCase
|
|||
file_put_contents($file, 'data=foo');
|
||||
Request::setInputStream($file);
|
||||
$request = new Request;
|
||||
unlink($file);
|
||||
$this->assertTrue($request->isJsonApiCall(), 'is JSON Api call');
|
||||
$this->assertEquals('create', $request->getOperation());
|
||||
$this->assertEquals('foo', $request->getParam('data'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue