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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deviantintegral’s picture

Status: Active » Needs review
FileSize
104.07 KB

I don't have time right now to go into details... but 100% test coverage :D

deviantintegral’s picture

FileSize
105.61 KB

deviantintegral’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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