Koha Test Wiki MW Canasta on Koha Portainer

Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.

For the current Koha Wiki, visit https://wiki.koha-community.org .

Module:Check for unknown parameters/testcases

From Koha Test Wiki MW Canasta on Koha Portainer
Jump to navigation Jump to search

Documentation for this module may be created at Module:Check for unknown parameters/testcases/doc

-- Unit tests for [[Module:Check for unknown parameters]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_01_1_check_live()
	self:preprocess_equals_many('{{Module:Check for unknown parameters/testcases/template call|', '}}', {
	{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"},
	})
end

function p:test_01_2_check_sandbox()
	self:preprocess_equals_many('{{Module:Check for unknown parameters/testcases/template call/sandbox|', '}}', {
	{"arg1=arg1| arg2=arg2 | name=name | height=height | weight=weight | website=website", "Unknown name,Unknown height,Unknown website,Unknown weight,"},
	})
end

return p