Problem/Motivation

In working on #2893804: Remove rest.module BC layers, it became clear that \Drupal\system\Tests\System\ResponseGeneratorTest was still using the deprecated RESTTestBase base test class. In fact, this issue blocks that issue.

We could use ResourceTestBase, but that's more than overkill here. The successor to WebTestBase, BrowserTestBase, is more than capable enough for our needs!

Proposed resolution

Update DbLogResourceTest.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 2927766-2.patch2.47 KBWim Leers
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers created an issue. See original summary.

Wim Leers’s picture

Status: Active » Needs review
FileSize
2.47 KB
Wim Leers’s picture

Title: Update DbLoResponseGeneratorTest to use the BrowserTestBase base class instead of the deprecated RESTTestBase » Update ResponseGeneratorTest to use the BrowserTestBase base class instead of the deprecated RESTTestBase
dawehner’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +phpunit initiative

Seems fine.

@Wim Leers
Just a general note: These issues seems to be totally mid-level issues, as in, there are at least a ton of other people out there who could work on those. Just tag for example issues related with phpunit conversions as "phpunit initiative" and you'll get someone to do it.

Wim Leers’s picture

@dawehner: I only realized that after the fact … I was first removing this test altogether, and moving its assertions elsewhere. By the time I realized I should just convert the existing test to BrowserTestBase, I'd already done exactly that. I did create #2927768: Update RestRegisterUserTest to use the ResourceTestBase base class instead of the deprecated RESTTestBase with that exact purpose though, and even tweeted about it! I also just tagged it phpunit initiative :)

  • xjm committed 6d0a2ea on 8.5.x
    Issue #2927766 by Wim Leers: Update ResponseGeneratorTest to use the...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.5.x. Thanks!

dawehner’s picture

@dawehner: I only realized that after the fact … I was first removing this test altogether, and moving its assertions elsewhere.

Yeah no worries, I just hope you take that into account in general.

Wim Leers’s picture

Status: Fixed » Closed (fixed)

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