Skip to content
Snippets Groups Projects
Verified Commit 155387ca authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX unit test

parent e6f3ef71
No related branches found
No related tags found
No related merge requests found
......@@ -70,14 +70,14 @@ class ResControllerTest extends TestCase
$GLOBALS['id'] = $userInfo['id'];
}
public function testGetFileContent()
public function testGetOriginalContent()
{
$resController = new \Resource\controllers\ResController();
$environment = \Slim\Http\Environment::mock(['REQUEST_METHOD' => 'GET']);
$request = \Slim\Http\Request::createFromEnvironment($environment);
$response = $resController->getFileContent($request, new \Slim\Http\Response(), ['resId' => self::$id]);
$response = $resController->getOriginalFileContent($request, new \Slim\Http\Response(), ['resId' => self::$id]);
$responseBody = json_decode((string)$response->getBody());
$this->assertSame(null, $responseBody);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment