File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ declare (strict_types=1 );
4+
35namespace AdminTest \Unit \Page \Handler ;
46
57use Admin \Page \Handler \GetPageViewHandler ;
@@ -17,9 +19,9 @@ class GetPageViewHandlerTest extends UnitTest
1719 */
1820 public function testPageWillReturnHtmlTemplate (): void
1921 {
20- $ request = $ this ->createMock (ServerRequestInterface::class);
22+ $ request = $ this ->createMock (ServerRequestInterface::class);
2123 $ routeResult = $ this ->createMock (RouteResult::class);
22- $ template = $ this ->createMock (TemplateRendererInterface::class);
24+ $ template = $ this ->createMock (TemplateRendererInterface::class);
2325
2426 $ routeResult ->method ('getMatchedRouteName ' )->willReturn ('test ' );
2527 $ template ->method ('render ' )->willReturn ('<p></p> ' );
@@ -36,4 +38,4 @@ public function testPageWillReturnHtmlTemplate(): void
3638 $ this ->assertSame ($ response ->getHeader ('content-type ' )[0 ], 'text/html; charset=utf-8 ' );
3739 $ this ->assertSame (StatusCodeInterface::STATUS_OK , $ response ->getStatusCode ());
3840 }
39- }
41+ }
Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ public function setUp(): void
4343 parent ::setUp ();
4444
4545 $ this ->authenticationService = $ this ->createMock (AuthenticationServiceInterface::class);
46- $ this ->adminService = $ this ->createMock (AdminService::class);
47- $ this ->settingService = $ this ->createMock (SettingService::class);
48- $ this ->request = $ this ->createMock (ServerRequestInterface::class);
46+ $ this ->adminService = $ this ->createMock (AdminService::class);
47+ $ this ->settingService = $ this ->createMock (SettingService::class);
48+ $ this ->request = $ this ->createMock (ServerRequestInterface::class);
4949 $ this ->stream = $ this ->createMock (StreamInterface::class);
50- $ this ->adminRepository = $ this ->createMock (AdminRepository::class);
51- $ this ->identity = $ this ->createMock (AdminIdentity::class);
52- $ this ->admin = $ this ->createMock (Admin::class);
50+ $ this ->adminRepository = $ this ->createMock (AdminRepository::class);
51+ $ this ->identity = $ this ->createMock (AdminIdentity::class);
52+ $ this ->admin = $ this ->createMock (Admin::class);
5353 }
5454
5555 /**
You can’t perform that action at this time.
0 commit comments