Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Mar 12, 2024
1 parent 46c5add commit 06806da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase/Controller/Component/RatingComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ protected function _initControllerAndRatings(array $params = [], array $options
$defaultOptions = $this->Controller->components()->get('Rating')->getConfig();
$this->Controller->components()->unload('Rating');

$this->Controller->loadComponent('Ratings.Rating', $options + $defaultOptions);
$options['className'] = 'Ratings.Rating';
$this->Controller->loadComponent('Rating', $options + $defaultOptions);
$event = new Event('startup', $this->Controller);

return $this->Controller->Rating->startup($event) ?: $this->Controller->getResponse();
Expand Down

0 comments on commit 06806da

Please sign in to comment.