Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unit Tests, PSALM & PHPCS integrations#408

Merged
arhimede merged 27 commits into
4.0from
issue-234
Oct 26, 2023
Merged

Unit Tests, PSALM & PHPCS integrations#408
arhimede merged 27 commits into
4.0from
issue-234

Conversation

@marioradu05
Copy link
Copy Markdown
Member

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 19, 2023

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Copy Markdown
Member

@alexmerlin alexmerlin left a comment

Choose a reason for hiding this comment

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

Please fix the following:

  • remove phpcs.xml.dist, phpunit.xml.dist
  • make sure phpcs.xml covers the below directories, then fix the errors, if any:
<file>bin</file>
<file>config</file>
<file>data/doctrine/fixtures</file>
<file>public</file>
<file>src</file>
<file>test</file>
  • src/User/src/InputFilter/LoginInputFilter.php and src/User/src/InputFilter/RequestResetPasswordInputFilter.php add return type hint to:

public function init(): void

  • Once you run PHPCS on the above-mentioned directories as well, you'll find plenty more issues to fix - I did not get further into the details where it's only a question of text aligninment
  • Convert line endings (where needed) from CRLF -> LF and make sure there's an empty line at the end of the files.
  • Reorder the badges as seen here and add Codecov badge:
    [![codecov](https://codecov.io/gh/dotkernel/frontend/graph/badge.svg?token=1BRAN3Q4ET)](https://codecov.io/gh/dotkernel/frontend)

codecov

Comment thread .github/workflows/codecov.yml
Comment thread .github/workflows/cs-tests.yml
Comment thread .github/workflows/run-tests.yml
Comment thread .github/workflows/static-analysis.yml
Comment thread phpunit.xml.dist Outdated
Comment thread test/Unit/User/InputFilter/UserDetailInputFilterTest.php
Comment thread test/Unit/User/Service/UserRoleServiceTest.php
Comment thread test/Unit/User/Service/UserServiceTest.php
Comment thread test/Unit/User/Service/UserServiceTest.php Outdated
Comment thread test/Unit/User/Service/UserServiceTest.php Outdated
This was linked to issues Oct 19, 2023
Copy link
Copy Markdown
Member

@alexmerlin alexmerlin left a comment

Choose a reason for hiding this comment

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

Also, please add local.test.php to config/autoload/.gitignore.

Comment thread src/App/src/Middleware/RememberMeMiddleware.php Outdated
Comment thread src/User/src/Service/UserService.php Outdated
Comment thread src/User/src/Adapter/AuthenticationAdapter.php Outdated
Comment thread src/User/src/Adapter/AuthenticationAdapter.php
Comment thread src/User/src/InputFilter/RegisterInputFilter.php Outdated
Comment thread src/User/src/InputFilter/ProfilePasswordInputFilter.php Outdated
Comment thread src/User/src/InputFilter/ResetPasswordInputFilter.php Outdated
@arhimede arhimede merged commit a4c17ae into 4.0 Oct 26, 2023
@arhimede arhimede deleted the issue-234 branch October 26, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github actions + symfony badge Rewrite unit tests

3 participants