fix: Add output for individual failures or skipped parts

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-08-11 18:09:25 +02:00
parent 86302937a9
commit 8e720f1147
5 changed files with 157 additions and 54 deletions

View File

@@ -43,6 +43,7 @@ use OCP\IDBConnection;
use OCP\IUser;
use OCP\IUserManager;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
class BoardImportServiceTest extends \Test\TestCase {
/** @var IDBConnection|MockObject */
@@ -92,7 +93,8 @@ class BoardImportServiceTest extends \Test\TestCase {
$this->attachmentMapper,
$this->cardMapper,
$this->commentsManager,
$this->eventDispatcher
$this->eventDispatcher,
$this->createMock(LoggerInterface::class),
);
$this->boardImportService->setSystem('trelloJson');
@@ -145,6 +147,9 @@ class BoardImportServiceTest extends \Test\TestCase {
}
public function testImportSuccess() {
$this->userManager->method('userExists')
->willReturn(true);
$this->boardMapper
->expects($this->once())
->method('insert');