summaryrefslogtreecommitdiff
path: root/tests/Unit/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Controllers')
-rw-r--r--tests/Unit/Controllers/CreditsControllerTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Unit/Controllers/CreditsControllerTest.php b/tests/Unit/Controllers/CreditsControllerTest.php
index 6f0200f2..3ce92cb1 100644
--- a/tests/Unit/Controllers/CreditsControllerTest.php
+++ b/tests/Unit/Controllers/CreditsControllerTest.php
@@ -2,6 +2,7 @@
namespace Unit\Controllers;
+use Engelsystem\Config\Config;
use Engelsystem\Controllers\CreditsController;
use Engelsystem\Http\Response;
use PHPUnit\Framework\MockObject\MockObject;
@@ -17,12 +18,13 @@ class CreditsControllerTest extends TestCase
{
/** @var Response|MockObject $response */
$response = $this->createMock(Response::class);
+ $config = new Config(['foo' => 'bar', 'credits' => ['lor' => 'em']]);
$response->expects($this->once())
->method('withView')
- ->with('pages/credits.twig');
+ ->with('pages/credits.twig', ['credits' => ['lor' => 'em']]);
- $controller = new CreditsController($response);
+ $controller = new CreditsController($response, $config);
$controller->index();
}
}