Content
View differences
Updated by Swikriti Tripathi almost 3 years ago
php unit tests started failing with the following error message in stable27
\`\`\`bash \`\`\`
OCA\\OpenProject\\Service\\OpenProjectAPIServiceTest::testValidateOpenProjectURL with data set #0 ('[http://127.0.0.1](http://127.0.0.1/)', true)
[39](https://github.com/nextcloud/integration_openproject/actions/runs/5816621616/job/15769992764?pr=453#step:15:40)ArgumentCountError: Too few arguments to function OC\\Http\\Client\\Client::\_\_construct(), 4 passed in /home/runner/work/integration\_openproject/integration\_openproject/server/apps/integration\_openproject/tests/lib/Service/OpenProjectAPIServiceTest.php on line 299 and exactly 5 expected
\`\`\`
Seems like we need to add some parameters in the function
\`\`\`bash
OCA\\OpenProject\\Service\\OpenProjectAPIServiceTest::testValidateOpenProjectURL with data set #0 ('[http://127.0.0.1](http://127.0.0.1/)', true)
[39](https://github.com/nextcloud/integration_openproject/actions/runs/5816621616/job/15769992764?pr=453#step:15:40)ArgumentCountError: Too few arguments to function OC\\Http\\Client\\Client::\_\_construct(), 4 passed in /home/runner/work/integration\_openproject/integration\_openproject/server/apps/integration\_openproject/tests/lib/Service/OpenProjectAPIServiceTest.php on line 299 and exactly 5 expected
\`\`\`
Seems like we need to add some parameters in the function