Skip to content

Commit

Permalink
OXDEV-8207: Fix phpunit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed May 27, 2024
1 parent fcbb8ae commit 309f6ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Integration/Extension/Controller/StartControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function tearDown(): void
/**
* @dataProvider providerCanUpdateOemtGreeting
*/
public function testCanUpdateOemtGreeting(bool $hasUser, string $mode, string $expect): void
public function testCanUpdateOemtGreeting(bool $hasUser, string $mode, string $assert): void
{
$moduleSettings = $this->get(ModuleSettingsServiceInterface::class);
$moduleSettings->saveGreetingMode($mode);
Expand All @@ -60,7 +60,7 @@ public function testCanUpdateOemtGreeting(bool $hasUser, string $mode, string $e
$controller->setUser($this->getTestUser());
}

$this->$expect($controller->canUpdateOemtGreeting());
$this->$assert($controller->canUpdateOemtGreeting());
}

/**
Expand Down Expand Up @@ -91,22 +91,22 @@ public static function providerCanUpdateOemtGreeting(): array
'without_user_generic' => [
'hasUser' => false,
'mode' => ModuleSettingsServiceInterface::GREETING_MODE_GENERIC,
'expect' => 'assertFalse',
'assert' => 'assertFalse',
],
'without_user_personal' => [
'hasUser' => false,
'mode' => ModuleSettingsServiceInterface::GREETING_MODE_PERSONAL,
'expect' => 'assertFalse',
'assert' => 'assertFalse',
],
'with_user_generic' => [
'hasUser' => true,
'mode' => ModuleSettingsServiceInterface::GREETING_MODE_GENERIC,
'expect' => 'assertFalse',
'assert' => 'assertFalse',
],
'with_user_personal' => [
'hasUser' => true,
'mode' => ModuleSettingsServiceInterface::GREETING_MODE_PERSONAL,
'expect' => 'assertTrue',
'assert' => 'assertTrue',
],
];
}
Expand Down
Empty file.

0 comments on commit 309f6ec

Please sign in to comment.