Skip to content
Prev Previous commit
Next Next commit
Trying to fix failing PHPUnit tests
Signed-off-by: Dariusz Olszewski <[email protected]>
  • Loading branch information
starypatyk committed Aug 22, 2022
commit dcb78699c1b1b6bf4d63c35495b67ffaa0ea5379
5 changes: 5 additions & 0 deletions tests/php/Controller/ChatControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
use OCA\Talk\Service\AttachmentService;
use OCA\Talk\Service\ParticipantService;
use OCA\Talk\Service\SessionService;
use OCA\Talk\Share\RoomShareProvider;
use OCP\App\IAppManager;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
Expand Down Expand Up @@ -76,6 +77,8 @@ class ChatControllerTest extends TestCase {
protected $guestManager;
/** @var MessageParser|MockObject */
protected $messageParser;
/** @var RoomShareProvider|MockObject */
protected $roomShareProvider;
/** @var IManager|MockObject */
protected $autoCompleteManager;
/** @var IUserStatusManager|MockObject */
Expand Down Expand Up @@ -118,6 +121,7 @@ public function setUp(): void {
$this->attachmentService = $this->createMock(AttachmentService::class);
$this->guestManager = $this->createMock(GuestManager::class);
$this->messageParser = $this->createMock(MessageParser::class);
$this->roomShareProvider = $this->createMock(RoomShareProvider::class);
$this->autoCompleteManager = $this->createMock(IManager::class);
$this->statusManager = $this->createMock(IUserStatusManager::class);
$this->matterbridgeManager = $this->createMock(MatterbridgeManager::class);
Expand Down Expand Up @@ -155,6 +159,7 @@ private function recreateChatController() {
$this->attachmentService,
$this->guestManager,
$this->messageParser,
$this->roomShareProvider,
$this->autoCompleteManager,
$this->statusManager,
$this->matterbridgeManager,
Expand Down