Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
FileSize
3.11 KB

Status: Needs review » Needs work

The last submitted patch, 2: 3098244.patch, failed testing. View results

longwave’s picture

Status: Needs work » Needs review
FileSize
3.28 KB
573 bytes

It would help if I used the correct namespace.

andypost’s picture

It looks good, but when we rename test classes we should left a copy of existing one and remove it in d9?!

Krzysztof Domański’s picture

Status: Needs review » Needs work

1. @group Render instead of @group Utility.

  * @group Utility
 */

2. We have several tests in the core/tests/Drupal/KernelTests/Core/Render directory. Can we move this test there?

--- a/core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/FormattableMarkupKernelTest.php

3. Re #5: Only one unsupported contrib module uses this test. Browser development module is not used. I think we can keep the old (deprecated) test, but IMO it won't be bad if we remove it.

http://grep.xnddx.ru/search?text=SafeMarkupKernelTest&filename=

Madhura BK’s picture

Assigned: Unassigned » Madhura BK
longwave’s picture

Re: #6.3 that is an unused use statement anyway, so I think we can say the old class is safe to remove.

Madhura BK’s picture

Assigned: Madhura BK » Unassigned
Status: Needs work » Needs review
FileSize
4.34 KB
8.58 KB

Have implemented the changes suggested in #6

Krzysztof Domański’s picture

Status: Needs review » Needs work

@Madhura BK Thanks! We need to change the namespace after moving to another directory.

-namespace Drupal\KernelTests\Component\Render;
+namespace Drupal\KernelTests\Core\Render;

Madhura BK’s picture

Status: Needs work » Needs review
FileSize
541 bytes
8.57 KB

Oh, I had forgotten to change the namespace.Have fixed it in this patch.Thanks Krzysztof Domański.

Krzysztof Domański’s picture

I realised that FormattableMarkup class is inside core/lib/Drupal/Component/Render so test should be inside core/tests/Drupal/KernelTests/Component/Render.

longwave’s picture

Krzysztof Domański’s picture

Status: Needs review » Reviewed & tested by the community

All feedback (#6, #8) was addressed.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed fd224bc774 to 9.0.x and 5d64d72c03 to 8.9.x and 82aea19c5d to 8.8.x. Thanks!

Backported to 8.8.x since this is a test-only change.

@andypost tests are not API - (test traits can be though).

  • alexpott committed fd224bc on 9.0.x
    Issue #3098244 by longwave, Madhura BK, Krzysztof Domański: Rename...

  • alexpott committed 5d64d72 on 8.9.x
    Issue #3098244 by longwave, Madhura BK, Krzysztof Domański: Rename...

  • alexpott committed 82aea19 on 8.8.x
    Issue #3098244 by longwave, Madhura BK, Krzysztof Domański: Rename...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.