Module:Protection banner/config/testcases: Difference between revisions

Content deleted Content added
change two to a more specific category - an obvious improvement over the template version
add template categories
Line 358:
function suite:testCategory_move_full_main_vandalism_temp()
self:assertCategoryEquals('Wikipedia pages move-protected due to vandalism', 'move', 'full', 0, 'vandalism', timestamp)
end
 
--------------------------------------------------------------------------------
-- Categories: template
--------------------------------------------------------------------------------
 
function suite:testCategory_edit_semi_template_all_all()
self:assertCategoryEquals('Wikipedia semi-protected templates', 'edit', 'semi', 10, nil, nil)
end
 
function suite:testCategory_edit_semi_template_all_temp()
self:assertCategoryEquals('Wikipedia semi-protected templates', 'edit', 'semi', 10, nil, timestamp)
end
 
function suite:testCategory_edit_full_template_all_all()
self:assertCategoryEquals('Wikipedia protected templates', 'edit', 'full', 10, nil, nil)
end
 
function suite:testCategory_edit_full_template_all_temp()
self:assertCategoryEquals('Wikipedia protected templates', 'edit', 'full', 10, nil, timestamp)
end
 
function suite:testCategory_move_full_template_all_all()
self:assertCategoryEquals('Wikipedia move-protected templates', 'move', 'full', 10, nil, nil)
end
 
function suite:testCategory_edit_full_template_all_temp()
self:assertCategoryEquals('Wikipedia move-protected templates', 'move', 'full', 10, nil, timestamp)
end