Skip to content

Commit

Permalink
run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Sep 6, 2023
1 parent c577622 commit e7741a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
*/

return [
'frontend' => [
'backend' => [
'dlf/page-view-proxy' => [
'target' => \Kitodo\Dlf\Middleware\PageViewProxy::class,
],
],
'frontend' => [
'dlf/search-in-document' => [
'target' => \Kitodo\Dlf\Middleware\SearchInDocument::class,
'after' => [
Expand Down
3 changes: 2 additions & 1 deletion Tests/Functional/Api/PageViewProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public function cannotAccessFileUrl(): void
$response = $this->queryProxy([
'url' => 'file:///etc/passwd',
]);

var_dump($response);
ob_flush();
$this->assertEquals(400, $response->getStatusCode());
}

Expand Down

0 comments on commit e7741a9

Please sign in to comment.