Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
radimvaculik committed Mar 11, 2024
1 parent a135d53 commit 78878f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Files/TestPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protected function createComponentGrid(): TestGridControl
return new TestGridControl();
}

protected function createTemplate(): Template
protected function createTemplate(?string $class = null): Template
{
return Mockery::mock(Template::class)
->shouldReceive('getFile')
Expand Down
2 changes: 1 addition & 1 deletion tests/Files/TestingDatagridFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function createTestingDatagrid(string $presenterName = 'Testing'): Datagr
$response = new Response();
$session = new Session($request, $response);

$presenter->injectPrimary(null, null, null, $request, $response, $session);
$presenter->injectPrimary($request, $response, $presenterFactory, null, $session);

return $presenter->getComponent('grid');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Files/TestingDatagridFactoryRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function createTestingDatagrid(): ?IComponent

$presenter->autoCanonicalize = false;

$presenter->injectPrimary(null, $presenterFactory, new SimpleRouter(), $request, $response, $session);
$presenter->injectPrimary($request, $response, $presenterFactory, new SimpleRouter(), $session);

$presenter->run(new Request('Test', 'GET', []));

Expand Down

0 comments on commit 78878f3

Please sign in to comment.