Skip to content

Commit

Permalink
fixup! fix(db): also chunk MariaDB deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Sep 12, 2023
1 parent 0247774 commit b18fe15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Controller/APIv1ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
use OCP\IRequest;
use OCP\IUserSession;
use OCP\RichObjectStrings\IValidator;
use Psr\Log\LoggerInterface;

/**
* Class APIv1Test
Expand Down Expand Up @@ -106,7 +107,8 @@ protected function tearDown(): void {
protected function cleanUp(): void {
$data = new Data(
$this->createMock(IManager::class),
\OC::$server->getDatabaseConnection()
\OC::$server->getDatabaseConnection(),
$this->createMock(LoggerInterface::class)
);

$this->deleteUser($data, 'activity-api-user1');
Expand Down Expand Up @@ -220,7 +222,10 @@ public function testGet(string $user, int $start, int $count, array $expected):
->method('getUID')
->willReturn($user);

$data = new Data($activityManager, \OC::$server->getDatabaseConnection());
$data = new Data($activityManager,
\OC::$server->getDatabaseConnection(),
$this->createMock(LoggerInterface::class)
);

$controller = new APIv1Controller(
'activity',
Expand Down

0 comments on commit b18fe15

Please sign in to comment.