diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-12-21 23:12:04 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-12-22 12:01:23 +0100 |
commit | 330356043df8e9c08fb3a408c74fe54bc2b9813d (patch) | |
tree | 5b9517fd4cd1b2130844157ec07926397d7f4396 /tests/Unit/Controllers/CreditsControllerTest.php | |
parent | 393db492948a16f246790b88a38a1235cb167659 (diff) |
credits: Allow customization
Diffstat (limited to 'tests/Unit/Controllers/CreditsControllerTest.php')
-rw-r--r-- | tests/Unit/Controllers/CreditsControllerTest.php | 6 |
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(); } } |