diff --git a/tests/Event/GroupVersionsExpireDeleteFileEventTest.php b/tests/Event/GroupVersionsExpireDeleteFileEventTest.php new file mode 100644 index 000000000..9d58a8864 --- /dev/null +++ b/tests/Event/GroupVersionsExpireDeleteFileEventTest.php @@ -0,0 +1,20 @@ +assertEquals(123, $event->fileId); + } +} diff --git a/tests/Event/GroupVersionsExpireDeleteVersionEventTest.php b/tests/Event/GroupVersionsExpireDeleteVersionEventTest.php new file mode 100644 index 000000000..aa00bf47e --- /dev/null +++ b/tests/Event/GroupVersionsExpireDeleteVersionEventTest.php @@ -0,0 +1,27 @@ +createMock(GroupVersion::class); + $version + ->expects($this->once()) + ->method('getFolderId') + ->willReturn(123); + + $event = new GroupVersionsExpireDeleteVersionEvent($version); + $this->assertEquals(123, $event->version->getFolderId()); + } +} diff --git a/tests/Event/GroupVersionsExpireEnterFolderEventTest.php b/tests/Event/GroupVersionsExpireEnterFolderEventTest.php new file mode 100644 index 000000000..65910a8ba --- /dev/null +++ b/tests/Event/GroupVersionsExpireEnterFolderEventTest.php @@ -0,0 +1,20 @@ + 'value']); + $this->assertEquals(['key' => 'value'], $event->folder); + } +}