-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Make extension v12 compatible (#50)
* TASK: Make extension v12 compatible * TASK: Move properties to setup method * TASK: Use LanguageServiceFactory * TASK: Fix test for v12
- Loading branch information
1 parent
fab74d9
commit a73e72d
Showing
13 changed files
with
91 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
namespace Ssch\T3Messenger\Tests\Functional\Fixtures\Extensions\t3_messenger_test\Classes\Controller; | ||
|
||
use Psr\Http\Message\ResponseInterface; | ||
use Ssch\T3Messenger\Tests\Functional\Fixtures\Extensions\t3_messenger_test\Classes\Command\MyCommand; | ||
use Ssch\T3Messenger\Tests\Functional\Fixtures\Extensions\t3_messenger_test\Classes\Service\MyService; | ||
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; | ||
|
@@ -24,8 +25,15 @@ public function __construct(MyService $myService) | |
$this->myService = $myService; | ||
} | ||
|
||
/** | ||
* @return void|ResponseInterface | ||
*/ | ||
public function dispatchAction() | ||
{ | ||
$this->myService->dispatch(new MyCommand('[email protected]')); | ||
|
||
if (method_exists($this, 'htmlResponse')) { | ||
return $this->htmlResponse(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
Tests/Functional/Fixtures/Extensions/t3_messenger_test/ext_localconf.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,28 +23,26 @@ final class MessengerMailerTest extends FunctionalTestCase | |
{ | ||
use MailerAssertionsTrait; | ||
|
||
protected bool $initializeDatabase = false; | ||
|
||
protected array $testExtensionsToLoad = [ | ||
'typo3conf/ext/typo3_psr_cache_adapter', | ||
'typo3conf/ext/t3_messenger', | ||
'typo3conf/ext/t3_messenger/Tests/Functional/Fixtures/Extensions/t3_messenger_test', | ||
]; | ||
|
||
protected array $configurationToUseInTestInstance = [ | ||
'MAIL' => [ | ||
'transport' => 'null', | ||
'defaultMailFromAddress' => '[email protected]', | ||
'defaultMailFromName' => 'Mustermann AG', | ||
'defaultMailReplyToAddress' => '[email protected]', | ||
'defaultMailReplyToName' => 'Mustermann AG', | ||
], | ||
]; | ||
|
||
private MailerInterface $subject; | ||
|
||
protected function setUp(): void | ||
{ | ||
$this->initializeDatabase = false; | ||
$this->configurationToUseInTestInstance = [ | ||
'MAIL' => [ | ||
'transport' => 'null', | ||
'defaultMailFromAddress' => '[email protected]', | ||
'defaultMailFromName' => 'Mustermann AG', | ||
'defaultMailReplyToAddress' => '[email protected]', | ||
'defaultMailReplyToName' => 'Mustermann AG', | ||
], | ||
]; | ||
$this->testExtensionsToLoad = [ | ||
'typo3conf/ext/typo3_psr_cache_adapter', | ||
'typo3conf/ext/t3_messenger', | ||
'typo3conf/ext/t3_messenger/Tests/Functional/Fixtures/Extensions/t3_messenger_test', | ||
]; | ||
|
||
parent::setUp(); | ||
$this->subject = $this->get(MailerInterface::class); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,30 +22,28 @@ final class BodyRendererTest extends FunctionalTestCase | |
{ | ||
use MailerAssertionsTrait; | ||
|
||
protected bool $initializeDatabase = false; | ||
|
||
protected array $testExtensionsToLoad = [ | ||
'typo3conf/ext/typo3_psr_cache_adapter', | ||
'typo3conf/ext/t3_messenger', | ||
'typo3conf/ext/t3_messenger/Tests/Functional/Fixtures/Extensions/t3_messenger_test', | ||
]; | ||
|
||
protected array $configurationToUseInTestInstance = [ | ||
'MAIL' => [ | ||
'transport' => 'null', | ||
'defaultMailFromAddress' => '[email protected]', | ||
'defaultMailFromName' => 'Mustermann AG', | ||
'defaultMailReplyToAddress' => '[email protected]', | ||
'defaultMailReplyToName' => 'Mustermann AG', | ||
], | ||
]; | ||
|
||
private BodyRendererInterface $subject; | ||
|
||
private MailerInterface $mailer; | ||
|
||
protected function setUp(): void | ||
{ | ||
$this->initializeDatabase = false; | ||
$this->configurationToUseInTestInstance = [ | ||
'MAIL' => [ | ||
'transport' => 'null', | ||
'defaultMailFromAddress' => '[email protected]', | ||
'defaultMailFromName' => 'Mustermann AG', | ||
'defaultMailReplyToAddress' => '[email protected]', | ||
'defaultMailReplyToName' => 'Mustermann AG', | ||
], | ||
]; | ||
$this->testExtensionsToLoad = [ | ||
'typo3conf/ext/typo3_psr_cache_adapter', | ||
'typo3conf/ext/t3_messenger', | ||
'typo3conf/ext/t3_messenger/Tests/Functional/Fixtures/Extensions/t3_messenger_test', | ||
]; | ||
|
||
parent::setUp(); | ||
$this->subject = $this->get(BodyRendererInterface::class); | ||
$this->mailer = $this->get(MailerInterface::class); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters