gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Add unit test for post title block render function

Open akasunil opened this issue 2 years ago • 11 comments

What?

Added unit test for Post title core block render function.

akasunil avatar Jul 14 '22 14:07 akasunil

@draganescu Can you please review this PR ?

akasunil avatar Jul 14 '22 14:07 akasunil

waiting for PR review

akasunil avatar Aug 20 '22 05:08 akasunil

Thank you @draganescu. @Mamaduka can we merge this PR ?

akasunil avatar Nov 11 '22 05:11 akasunil

waiting for PR review

akasunil avatar Jan 02 '23 05:01 akasunil

@anton-vlasenko Feedback addressed. Can you please review again.

akasunil avatar Apr 27 '23 11:04 akasunil

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: akasunil <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: spacedmonkey <[email protected]>
Co-authored-by: anton-vlasenko <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

github-actions[bot] avatar Feb 26 '24 05:02 github-actions[bot]

Could the test file be renamed to renderBlockCorePostTitle.php?

Is this the new standards that we are going to follow from now on for test file name? because all other files are named in kebab-case.

akasunil avatar Mar 02 '24 06:03 akasunil

Could the test file be renamed to renderBlockCorePostTitle.php?

Is this the new standards that we are going to follow from now on for test file name? because all other files are named in kebab-case.

No, this is not a new standard, but I agree, it might seem new. There are (mostly) old tests that don't follow this naming convention, and the newer ones that adhere to it, e.g.: https://github.com/WordPress/wordpress-develop/tree/trunk/tests/phpunit/tests/option

anton-vlasenko avatar Mar 04 '24 18:03 anton-vlasenko

@anton-vlasenko To follow the standard for file name of unit tests, It required to update phpunit config file first.

akasunil avatar Mar 08 '24 08:03 akasunil

I have updated phpunit config temporary until we change all filenames to camel case as per wordpress core standard. And Addressed all feedback provided by reviewer.

akasunil avatar Apr 28 '24 08:04 akasunil

@anton-vlasenko can you please review this PR?

akasunil avatar May 10 '24 04:05 akasunil

@anton-vlasenko Can you please review this PR again?

akasunil avatar Jul 03 '24 04:07 akasunil