Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Should be fairly simple to add some basic integration tests to ensure the module behaves as properly.
- Create a new normal user on the site
- Add three fields in user profiles
- Add two user profile as pcp user field and show pcp block on page
- Check page have pcp block
- Initial pcp block must show 0% Complete
- Fill one pcp user field
- Check pcp block must show 50% Complete
- Fill one non pcp user field
- Check pcp block still show 50% Complete
- Fill another pcp user field
- Check pcp block must show 100% Complete
Comment | File | Size | Author |
---|---|---|---|
#1 | pcp-add_simpletest_integration-2478539-1.patch | 4.59 KB | perennial.sky |
Comments
Comment #1
perennial.sky CreditAttribution: perennial.sky at Innoraft commentedAdd a patch having simple test for pcp module
Comment #2
BarisW CreditAttribution: BarisW at LimoenGroen commentedGood idea! Some tests would be really helpful.
I've enabled automated testing for the project. Let's see what the bot thinks.
Comment #3
BarisW CreditAttribution: BarisW at LimoenGroen commentedComment #4
BarisW CreditAttribution: BarisW at LimoenGroen commentedComment #5
perennial.sky CreditAttribution: perennial.sky at Innoraft commentedBot tested this patch and passed all its test,
https://qa.drupal.org/pifr/test/1035373
I think we should commit this patch.
Comment #6
BarisW CreditAttribution: BarisW at LimoenGroen commentedAgreed!
Comment #8
perennial.sky CreditAttribution: perennial.sky at Innoraft commented