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.
TAC is a complex module that offer configuration possibilities. A simpletest test suite would help prevent and resolve "edge-case" bugs.
Comment | File | Size | Author |
---|---|---|---|
#5 | tac_test_d7.txt | 5.06 KB | xjm |
#1 | tac_test.txt | 4.99 KB | xjm |
Comments
Comment #1
xjmThis script I wrote (designed to be used with drush) sets up a testing environment for TAC. It doesn't use simpletest; it configures the existing drupal site. (Don't use it on anything but a 100% disposable test site. Really. It will delete all your data.) However, it could be used as a starting point for creating a simpletest environment.
Comment #2
xjmEr... the original post should say "that offers many configuration possibilities" or something.
Comment #3
xjmThis should be included before a 7.x-1.0 release, because the module has about 30 different query patterns that could all introduce bugs when ported to the new DB API.
Comment #4
xjmAdding tag.
Comment #5
xjmD7 version of the same script that I'm using at the moment.
Comment #6
xjmThe basic test environment setup has been committed, including creating our three role types and four vocabularies. It does not yet configure TAC itself, nor actually test anything, but it's ready for tests to be added.
http://drupalcode.org/project/taxonomy_access.git/commit/6a78496
Comment #7
xjmAdding the grant configuration to tests depends on #1213792: Refactor and improve grant update API -- at a minimum, the functions need to be moved from the admin file into the module.
Comment #8
xjmRetagging according to standard.
Comment #9
xjmA number of tests have been added in http://drupal.org/commitlog/commit/364/46eca0ca67b6e785c92f10c6f0058d365.... Marking fixed. I'll open separate issues for additional tests (or just write them). :)