Skip to content

Commit

Permalink
fixup! fixup! fix(teams): resolve undefined variable error and add lo…
Browse files Browse the repository at this point in the history
…gging
  • Loading branch information
miaulalala committed Aug 26, 2024
1 parent daf421b commit adef3c9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/php/unit/Controller/ContactControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use OCP\IRequest;
use OCP\IUserManager;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;

class ContactControllerTest extends TestCase {
/** @var string */
Expand Down Expand Up @@ -42,8 +43,14 @@ protected function setUp():void {
$this->manager = $this->createMock(IManager::class);
$this->appManager = $this->createMock(IAppManager::class);
$this->userManager = $this->createMock(IUserManager::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->controller = new ContactController($this->appName,
$this->request, $this->manager, $this->appManager, $this->userManager);
$this->request,
$this->manager,
$this->appManager,
$this->userManager,
$this->logger,
);
}

public function testSearchLocationDisabled():void {
Expand Down

0 comments on commit adef3c9

Please sign in to comment.