Some random tests and fixes (#6000)
* added tests for form models * apply form theme only to the own custom form type * change route order for improves matching
This commit is contained in:
@@ -156,8 +156,10 @@ final class Configuration
|
||||
return $this->formTheme;
|
||||
}
|
||||
|
||||
public function setFormTheme(string $formTheme): void
|
||||
public function setFormTheme(string $formTheme): Configuration
|
||||
{
|
||||
$this->formTheme = $formTheme;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ final class MultiUserTimesheet extends Timesheet
|
||||
public function removeUser(User $user): void
|
||||
{
|
||||
if ($this->users->contains($user)) {
|
||||
$this->users->remove($user);
|
||||
$this->users->removeElement($user);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ final class MultiUserTimesheet extends Timesheet
|
||||
public function removeTeam(Team $team): void
|
||||
{
|
||||
if ($this->teams->contains($team)) {
|
||||
$this->teams->remove($team);
|
||||
$this->teams->removeElement($team);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ final class TotpActivation
|
||||
{
|
||||
private ?string $code = null;
|
||||
|
||||
public function __construct(private User $user)
|
||||
public function __construct(private readonly User $user)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user