TestingParty08: vocabulary overview + deletion

catch - August 10, 2008 - 15:45
Project:Drupal
Version:7.x-dev
Component:tests
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

The following needs testing:

Vocabulary overview with no vocabularies.
Changing weights on the vocabulary overview with two or more vocabularies.
Deleting a vocabulary.
When a vocabulary has a weight, check the weight is removed when other vocabularies are deleted.

#1

foripepe - October 9, 2008 - 15:05
Status:active» needs review

Fixed:
- 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.

AttachmentSizeStatusTest resultOperations
vocabulary_overview.patch4.55 KBIdleFailed: Failed to apply patch.View details | Re-test

#2

System Message - November 16, 2008 - 21:45
Status:needs review» needs work

The last submitted patch failed testing.

#3

foripepe - November 17, 2008 - 10:26
Status:needs work» needs review

See: http://pastebin.ca/1258476

#4

System Message - November 18, 2008 - 12:45
Status:needs review» needs work

The last submitted patch failed testing.

#5

foripepe - November 18, 2008 - 13:55
Status:needs work» needs review

Everything is green. Why did the patch fail?

#6

catch - November 18, 2008 - 15:17

The 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.

AttachmentSizeStatusTest resultOperations
vocabulary_admin.patch4.38 KBIdlePassed: 7508 passes, 0 fails, 0 exceptionsView details | Re-test

#7

foripepe - November 18, 2008 - 15:35

Ok, thanks Catch. I understand now. The green fields were a little bit confusing for me... :)

#8

catch - November 18, 2008 - 22:20

Spotted a couple more assertions which needed reworking.

AttachmentSizeStatusTest resultOperations
vocabulary_admin.patch4.29 KBIdlePassed: 7507 passes, 0 fails, 0 exceptionsView details | Re-test

#9

pwolanin - November 21, 2008 - 00:44

there are a bunch of really not needed calls to drupalGet() and $this->assertResponse('200'); in the last test.

#10

catch - November 21, 2008 - 00:52

Missed 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.

AttachmentSizeStatusTest resultOperations
vocabulary_admin.patch4.13 KBIdlePassed: 7497 passes, 0 fails, 0 exceptionsView details | Re-test

#11

pwolanin - November 21, 2008 - 18:36

Seems 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.

AttachmentSizeStatusTest resultOperations
vocabulary_admin_293506-11.patch12.48 KBIdlePassed: 7417 passes, 0 fails, 0 exceptionsView details | Re-test

#12

catch - November 21, 2008 - 20:01
Status:needs review» reviewed & tested by the community

Very nice. taxonomy.test keeps getting smaller :)

#13

Dries - November 22, 2008 - 12:05
Status:reviewed & tested by the community» fixed

Thanks all! Committed to CVS HEAD. :-)

#14

System Message - December 6, 2008 - 12:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.