Re: Simpletest Conundrum
Lucas Hedding <[email protected]> Mon, 1 Dec 2014 13:37:18 -0600
| Newsgroups | gmane.comp.php.drupal.support |
|---|---|
| Message-ID | <CAAPYOemnryofoQXi5LuHunbMznrLaPaFS1u7ZqCR5TRoRBkjsw@mail.gmail.com> |
If its just functional testing without any UI, why not just use phpunit directly? Lucas MTech, LLC <http://www.mtech-llc.com> On Mon, Dec 1, 2014 at 1:29 PM, Jeff Greenberg < [email protected]> wrote: > Argh. Been so long that I sent this to the dev list by mistake... > > In Drupal 7, I have a requirement to simpletest a functional group of > methods... one test comprised of about 1800 subtest permutations. > > The issue I have is that these are back-end functions with no UI > interaction, yet simpletest unit test, from what I read, does not provide > the functionality for accessing the db, creating test tables and data, etc. > > Do I fudge it by having a menu callback, or by having an admin page with a > button if necessary, so that I can webtest, or do I manually include > db.inc, etc. so that I can access the db, (though I think it would need to > be much dirtier than that)? > > Jeff > --- > drupal.org/user/367108 > linkedin.com/in/jeffrgreenberg > accidentalcoder.com / ayendesigns.com > @accidentalcoder > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- [ Drupal support list | http://lists.drupal.org/ ]