diff --git a/tests/Platforms/AbstractPlatformTestCase.php b/tests/Platforms/AbstractPlatformTestCase.php index 096b81b1549..b029f8a173f 100644 --- a/tests/Platforms/AbstractPlatformTestCase.php +++ b/tests/Platforms/AbstractPlatformTestCase.php @@ -355,19 +355,24 @@ public function testGetAlterTableSqlDispatchEvent(): void $listenerMock = $this->createMock(GetAlterTableSqlDispatchEventListener::class); $listenerMock ->expects(self::once()) - ->method('onSchemaAlterTable'); + ->method('onSchemaAlterTable') + ->willReturn(false); $listenerMock ->expects(self::once()) - ->method('onSchemaAlterTableAddColumn'); + ->method('onSchemaAlterTableAddColumn') + ->willReturn(false); $listenerMock ->expects(self::once()) - ->method('onSchemaAlterTableRemoveColumn'); + ->method('onSchemaAlterTableRemoveColumn') + ->willReturn(false); $listenerMock ->expects(self::once()) - ->method('onSchemaAlterTableChangeColumn'); + ->method('onSchemaAlterTableChangeColumn') + ->willReturn(false); $listenerMock ->expects(self::once()) - ->method('onSchemaAlterTableRenameColumn'); + ->method('onSchemaAlterTableRenameColumn') + ->willReturn(false); $eventManager = new EventManager(); $events = [ @@ -1435,15 +1440,15 @@ public function onSchemaCreateTableColumn(): void; interface GetAlterTableSqlDispatchEventListener { - public function onSchemaAlterTable(): void; + public function onSchemaAlterTable(): bool; - public function onSchemaAlterTableAddColumn(): void; + public function onSchemaAlterTableAddColumn(): bool; - public function onSchemaAlterTableRemoveColumn(): void; + public function onSchemaAlterTableRemoveColumn(): bool; - public function onSchemaAlterTableChangeColumn(): void; + public function onSchemaAlterTableChangeColumn(): bool; - public function onSchemaAlterTableRenameColumn(): void; + public function onSchemaAlterTableRenameColumn(): bool; } interface GetDropTableSqlDispatchEventListener