|
|
@@ -11,9 +11,9 @@ use App\Entity\Education\EducationNotationConfig;
|
|
|
use App\Entity\Organization\Organization;
|
|
|
use App\Entity\Organization\Parameters;
|
|
|
use App\Enum\Education\AdvancedEducationNotationTypeEnum;
|
|
|
-use App\Message\Command\Typo3\Typo3DeleteCommand;
|
|
|
-use App\Message\Command\Typo3\Typo3UndeleteCommand;
|
|
|
-use App\Message\Command\Typo3\Typo3UpdateCommand;
|
|
|
+use App\Message\Message\Typo3\Typo3Delete;
|
|
|
+use App\Message\Message\Typo3\Typo3Undelete;
|
|
|
+use App\Message\Message\Typo3\Typo3Update;
|
|
|
use App\Repository\Booking\CourseRepository;
|
|
|
use App\Service\Network\Utils as NetworkUtils;
|
|
|
use App\Service\OnChange\OnChangeContext;
|
|
|
@@ -206,8 +206,8 @@ class OnParametersChangeTest extends TestCase
|
|
|
$this->messageBus
|
|
|
->expects(self::once())
|
|
|
->method('dispatch')
|
|
|
- ->with(self::isInstanceOf(Typo3UpdateCommand::class))
|
|
|
- ->willReturn(new Envelope(new Typo3UpdateCommand(1)));
|
|
|
+ ->with(self::isInstanceOf(Typo3Update::class))
|
|
|
+ ->willReturn(new Envelope(new Typo3Update(1)));
|
|
|
|
|
|
$previousParameters = $this->getMockBuilder(Parameters::class)->getMock();
|
|
|
$previousParameters->method('getId')->willReturn(1);
|
|
|
@@ -245,8 +245,8 @@ class OnParametersChangeTest extends TestCase
|
|
|
$this->messageBus
|
|
|
->expects(self::once())
|
|
|
->method('dispatch')
|
|
|
- ->with(self::isInstanceOf(Typo3DeleteCommand::class))
|
|
|
- ->willReturn(new Envelope(new Typo3DeleteCommand(1)));
|
|
|
+ ->with(self::isInstanceOf(Typo3Delete::class))
|
|
|
+ ->willReturn(new Envelope(new Typo3Delete(1)));
|
|
|
|
|
|
$previousParameters = $this->getMockBuilder(Parameters::class)->getMock();
|
|
|
$previousParameters->method('getId')->willReturn(1);
|
|
|
@@ -285,11 +285,11 @@ class OnParametersChangeTest extends TestCase
|
|
|
->expects(self::exactly(2))
|
|
|
->method('dispatch')
|
|
|
->willReturnCallback(function ($message) {
|
|
|
- if ($message instanceof Typo3UndeleteCommand) {
|
|
|
- return new Envelope(new Typo3UndeleteCommand(1));
|
|
|
+ if ($message instanceof Typo3Undelete) {
|
|
|
+ return new Envelope(new Typo3Undelete(1));
|
|
|
}
|
|
|
- if ($message instanceof Typo3UpdateCommand) {
|
|
|
- return new Envelope(new Typo3UpdateCommand(1));
|
|
|
+ if ($message instanceof Typo3Update) {
|
|
|
+ return new Envelope(new Typo3Update(1));
|
|
|
}
|
|
|
throw new \AssertionError('unexpected message : '.$message::class);
|
|
|
});
|