Module:Professional wrestling profiles/testcases
Appearance
![]() | This is the test cases page for the module Module:Professional wrestling profiles. Results of the test cases. |
-- Example Unit tests for [[Module:Professional wrestling]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_profiles_blank()
self:preprocess_equals('{{#invoke:Professional wrestling | profiles}}', '');
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|name = John Cena}}', '');
end
function p:test_profiles_single()
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|cagematch = 691}}', "Professional wrestling/testcases's profile at [http://www.cagematch.net/?id=2&nr=691 Cagematch.net]");
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|name = John Cena|cagematch = 691}}', "John Cena's profile at [http://www.cagematch.net/?id=2&nr=691 Cagematch.net]");
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|wrestlingdata = 336}}', "Professional wrestling/testcases's profile at [http://wrestlingdata.com/index.php?befehl=bios&wrestler=336 Wrestlingdata.com]");
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|name = John Cena|wrestlingdata = 336}}', "John Cena's profile at [http://wrestlingdata.com/index.php?befehl=bios&wrestler=336 Wrestlingdata.com]");
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|iwd = john-cena-350}}', "Professional wrestling/testcases's profile at [http://www.profightdb.com/wrestlers/john-cena-350.html Internet Wrestling Database]");
self:preprocess_equals('{{#invoke:Professional wrestling | profiles|name = John Cena|iwd = john-cena-350}}', "John Cena's profile at [http://www.profightdb.com/wrestlers/john-cena-350.html Internet Wrestling Database]");
end
return p