Skip to content

Commit

Permalink
fixup! fix: Properly create new rows in filtered views
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Oct 8, 2024
1 parent e7804a2 commit d819e0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/Service/LegacyRowMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use OCA\Tables\Db\ColumnTypes\SelectionColumnQB;
use OCA\Tables\Db\ColumnTypes\SuperColumnQB;
use OCA\Tables\Db\ColumnTypes\TextColumnQB;
use OCA\Tables\Helper\ColumnsHelper;
use OCA\Tables\Helper\UserHelper;
use OCP\IDBConnection;
use OCP\Server;
Expand Down Expand Up @@ -120,7 +121,8 @@ public function testMigrateLegacyRow() {
$row2Mapper = $this->createMock(Row2Mapper::class);
$logger = $this->createMock(LoggerInterface::class);
$userHelper = $this->createMock(UserHelper::class);
$legacyRowMapper = new LegacyRowMapper($dbConnection, $logger, $textColumnQb, $selectionColumnQb, $numberColumnQb, $datetimeColumnQb, $superColumnQb, $columnMapper, $userHelper, $row2Mapper);
$columnsHelper = $this->createMock(ColumnsHelper::class);
$legacyRowMapper = new LegacyRowMapper($dbConnection, $logger, $textColumnQb, $selectionColumnQb, $numberColumnQb, $datetimeColumnQb, $superColumnQb, $columnMapper, $columnsHelper, $userHelper, $row2Mapper);

$legacyRow = new LegacyRow();
$legacyRow->setId(5);
Expand Down

0 comments on commit d819e0a

Please sign in to comment.