Skip to content

Commit

Permalink
fix: Phpunit error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuf committed Sep 20, 2024
1 parent 33e9f8d commit 67c57df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@

namespace Sinso\Variables\Tests\Functional\Fixtures\Frontend\Hook;

use Sinso\Variables\Domain\Model\MarkerCollection;
use Sinso\Variables\Hooks\MarkersProcessorInterface;

class ImplementingInterface implements MarkersProcessorInterface
{
public function postProcessMarkers(array &$markers)
public function postProcessMarkers(MarkerCollection $markers): void
{
$markers['{{MARKER1}}']['replacement'] = 'Modified by hook';
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Functional/Frontend/AbstractProcessesMarkersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

abstract class AbstractProcessesMarkersTest extends FunctionalTestCase
{
protected array $testExtensionsToLoad = [
protected $testExtensionsToLoad = [
'typo3conf/ext/variables',
];

protected array $pathsToLinkInTestInstance = [
protected $pathsToLinkInTestInstance = [
'typo3conf/ext/variables/Tests/Functional/Fixtures/Frontend/Sites/' => 'typo3conf/sites',
];

Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Frontend/BreaksOnInvalidHookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class BreaksOnInvalidHookTest extends AbstractProcessesMarkersTest
{
protected array $configurationToUseInTestInstance = [
protected $configurationToUseInTestInstance = [
'EXTCONF' => [
'variables' => [
'postProcessMarkers' => [
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Frontend/ProcessesMarkersHookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class ProcessesMarkersHookTest extends AbstractProcessesMarkersTest
{
protected array $configurationToUseInTestInstance = [
protected $configurationToUseInTestInstance = [
'EXTCONF' => [
'variables' => [
'postProcessMarkers' => [
Expand Down

0 comments on commit 67c57df

Please sign in to comment.