New AdSpace tests, need to start looking at coverage.
Added some comments and fixed some POD in AdSpace.pm and Ad.pm
This commit is contained in:
parent
870d9dbe46
commit
c9726f7b4d
4 changed files with 29 additions and 13 deletions
|
|
@ -31,11 +31,12 @@ my $adSpace;
|
|||
|
||||
SKIP: {
|
||||
|
||||
skip "Unable to load WebGUI::AdSpace::Ad", $numTests-1 unless $loaded;
|
||||
$adSpace = WebGUI::AdSpace->create($session, {name=>"Alfred"});
|
||||
$ad=WebGUI::AdSpace::Ad->create($session, $adSpace->getId, {"type", "text"});
|
||||
isa_ok($ad,"WebGUI::AdSpace::Ad","testing create with no properties");
|
||||
skip "Unable to load WebGUI::AdSpace::Ad", $numTests-1 unless $loaded;
|
||||
$adSpace = WebGUI::AdSpace->create($session, {name=>"Alfred"});
|
||||
$ad=WebGUI::AdSpace::Ad->create($session, $adSpace->getId, {"type" => "text"});
|
||||
isa_ok($ad,"WebGUI::AdSpace::Ad","testing create with no properties");
|
||||
}
|
||||
|
||||
END {
|
||||
if (defined $ad and ref $ad eq 'WebGUI::AdSpace::Ad') {
|
||||
$ad->delete;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue