Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
As a part of the 2.x SDK upgrade, I've been writing things so that the "drupalisms" like variable_get() are in their own classes. That way, we can test the core logic of most of our code without needing a bootstrap.
This means we can either use DrupalUnitTestCase, or PHPUnit to run our tests. I still have to investigate, but I'm leaning towards PHPUnit since that will let us reuse fixtures from the SDK and integrate with IDEs like PHPStorm.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2471823.2-test-coverage.patch | 105.61 KB | deviantintegral |
#1 | 2471823.1-test-coverage.patch | 104.07 KB | deviantintegral |
Comments
Comment #1
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commentedI don't have time right now to go into details... but 100% test coverage :D
Comment #2
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commentedComment #4
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commented