refactor configurations (#2626)
* composition instead of inheritance * refactored some twig extensions to runtime extensions
This commit is contained in:
@@ -24,8 +24,7 @@ class KimaiMailerTest extends TestCase
|
||||
{
|
||||
public function getSut(): KimaiMailer
|
||||
{
|
||||
$config = $this->createMock(MailConfiguration::class);
|
||||
$config->expects($this->any())->method('getFromAddress')->willReturn('zippel@example.com');
|
||||
$config = new MailConfiguration('zippel@example.com');
|
||||
|
||||
$mailer = $this->createMock(MailerInterface::class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user