Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
tests
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2008 at 15:45 UTC
Updated:
6 Dec 2008 at 12:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
foripepe commentedFixed:
- Vocabulary overview with no vocabularies.
- Changing weights on the vocabulary overview with two or more vocabularies.
- Deleting a vocabulary.
The last one was a bug, so we didn't create test for it.
- When a vocabulary has a weight, check the weight is removed when other vocabularies are deleted.
Comment #3
foripepe commentedSee: http://pastebin.ca/1258476
Comment #5
foripepe commentedEverything is green. Why did the patch fail?
Comment #6
catchThe patch failed due to a recent commit which completely reorganised the taxonomy test, causing your patch not to apply any longer. If the testing system says your patch needs work, it's always worth checking it applies properly on a clean copy of HEAD, and that nothing has changed which might cause the test itself to break.
I re-rolled the patch, and also fixed some comment and code style issues. The test itself looks good and we don't have test coverage for some of this stuff yet.
Comment #7
foripepe commentedOk, thanks Catch. I understand now. The green fields were a little bit confusing for me... :)
Comment #8
catchSpotted a couple more assertions which needed reworking.
Comment #9
pwolanin commentedthere are a bunch of really not needed calls to drupalGet() and $this->assertResponse('200'); in the last test.
Comment #10
catchMissed those while cleaning up, sorry about that. Also added an additional assertion using taxonomy_get_vocabularies() to ensure that deleting everything from the UI really does work.
Comment #11
pwolanin commentedSeems like there was various common code that should be factored out too - this substantially reduces the LOC to be maintained in the existing tests while still adding all the new tests.
Comment #12
catchVery nice. taxonomy.test keeps getting smaller :)
Comment #13
dries commentedThanks all! Committed to CVS HEAD. :-)