Skip to content

Commit

Permalink
Fix error in unit test listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin de Keijzer committed Jun 22, 2020
1 parent 1befe55 commit 722301c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/EventListener/ThumbnailUploadListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testPrePersist(): void
$objectManager = $this->createMock(ObjectManager::class);
$liveBroadcast = new LiveBroadcast();

$uploadedFile = new UploadedFile('/tmp', 'filename', null, null, UPLOAD_ERR_NO_FILE);
$uploadedFile = new UploadedFile('/tmp', 'filename', null, UPLOAD_ERR_NO_FILE);
$liveBroadcast->setThumbnail($uploadedFile);

$this->uploadService->expects(static::once())
Expand All @@ -75,7 +75,7 @@ public function testPreUpdate(): void
$entityManager = $this->createMock(EntityManagerInterface::class);
$liveBroadcast = new LiveBroadcast();

$uploadedFile = new UploadedFile('/tmp', 'thumbnail', null, null, UPLOAD_ERR_NO_FILE);
$uploadedFile = new UploadedFile('/tmp', 'thumbnail', null, UPLOAD_ERR_NO_FILE);
$liveBroadcast->setThumbnail($uploadedFile);

$this->uploadService->expects(static::once())
Expand Down

0 comments on commit 722301c

Please sign in to comment.