see #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase)
Lists of tests to convert
\Drupal\block_content\Tests\BlockContentCreationTest
\Drupal\block_content\Tests\BlockContentListTest
\Drupal\block_content\Tests\BlockContentListViewsTest
\Drupal\block_content\Tests\BlockContentTranslationUITest
\Drupal\block_content\Tests\BlockContentValidationTest
Views tests:
BlockContentFieldFilterTest.php
BlockContentIntegrationTest.php
BlockContentRedirectTest.php
BlockContentTestBase.php
FieldTypeTest.php
RevisionRelationshipsTest.php
Out of Scope:
\Drupal\block_content\Tests\BlockContentTypeTest #2887311: Convert BlockContentTypeTest web tests to browser tests for block_content module
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | interdiff-2864005-13-15.txt | 6.92 KB | naveenvalecha |
| #15 | 2864005-15.patch | 13.28 KB | naveenvalecha |
Comments
Comment #2
goz commentedI don't convert BlockContentTestBase which needs first #2830773: Add legacy for clickLinkPartialName() method for browser tests to be fixed.
Comment #4
goz commentedRemove BlockContentUpdateTest.php from BTB conversion patch and put it back as WTB test since extends WTB methods.
Comment #5
dawehnerWhat is up with
\Drupal\block_content\Tests\BlockContentTypeTest?Comment #6
dawehnerComment #7
jofitz\Drupal\block_content\Tests\BlockContentTypeTest.@deprecatedfrom\Drupal\Tests\block_content\Functional\BlockContentTestBase.Comment #9
dawehnerI guess this actually fetches the
<body>tag?Comment #10
michielnugter commentedComment #11
naveenvalechaAccommodated #9
This patch will fail with two errors
The BlockContentTypeTest:: testBlockContentTypeEditing is using assertBreadcrumb which is part of the AssertBreadcrumbTrait This trait is also being used by the couple of Webtests. So Should we add another copy of AssertBreadcrumbTrait for BTB tests and change its functions accordingly?
This class requires clickLinkPartialName function. In which class we're adding the new helper functions?
//Naveen
Comment #12
naveenvalechaPostponed on #2887099: Menu: convert system functional tests to PHPUnit
Comment #13
naveenvalechaI have moved the \Drupal\block_content\Tests\BlockContentTypeTest to out of scope and added a followup issue to convert it #2887311: Convert BlockContentTypeTest web tests to browser tests for block_content module and postponed the follow-up issue on the other issue so that we could proceed here with minimal disruption.
@Goz,
Thanks for the work that helped to keep this issue forward. I'm unassigning it as this issue is ready for review.
//Naveen
Comment #14
lendudeLooking good so far, the list to convert didn't have the Views tests in it yet, but we need to do these too.
Comment #15
naveenvalechaHere we go with Views tests as well.
//Naveen
Comment #16
lendudePatch looks good.
- Everything in scope is moved
- Deprecated base classes
- No tests in core that use the deprecated base classes except those we have a follow up for here.
Comment #17
larowlanUpdating issue credit
Comment #20
larowlanRan the tests locally, no deprecations.
Committed as 27ab301 and pushed to 8.4.x.
As applies cleanly and passes on 8.3, cherry-picked as 2a97f85 and pushed to 8.3.x.
Great progress being made here - thanks.