Skip to content

Added back-end unit tests for all controllers, services and more#593

Draft
WilcoLouwerse wants to merge 25 commits intodevelopmentfrom
feature/CONNECTOR-371/unit-tests
Draft

Added back-end unit tests for all controllers, services and more#593
WilcoLouwerse wants to merge 25 commits intodevelopmentfrom
feature/CONNECTOR-371/unit-tests

Conversation

@WilcoLouwerse
Copy link
Copy Markdown
Contributor

@WilcoLouwerse WilcoLouwerse commented Aug 29, 2025

https://conduction.atlassian.net/browse/CONNECTOR-371

image

docker exec master-nextcloud-1 bash -c "cd /var/www/html && phpunit --bootstrap tests/bootstrap.php apps-extra/openconnector/tests"

$logs = $this->synchronizationLogMapper->findAll(null, null, $filters);

// Create CSV content
$csvData = "ID,UUID,Level,Message,Synchronization ID,User ID,Session ID,Created,Expires\n";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synchronizations don't have a property called level

Comment thread .gitmodules
@@ -0,0 +1,2 @@
[submodule "3rdparty"]
shallow = true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Comment thread lib/Db/SourceMapper.php
* @param string $reference The reference to find sources for
* @return array<Source> Array of Source entities
*/
public function findByRef(string $reference): array
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rubenvdlinde ik kan op OpenConnector geen Sources meer importeren omdat de findByRef function op de SourceMapper niet meer bestaat
Is dit intentional? Of mag ik deze functie terug zetten?

image image

@WilcoLouwerse WilcoLouwerse changed the title Added unit tests for all controllers and services Added back-end unit tests for all controllers, services and more Sep 18, 2025
@rjzondervan rjzondervan marked this pull request as draft March 20, 2026 10:45
@rjzondervan
Copy link
Copy Markdown
Member

PR converted to draft to serve as inspiration for refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants