19 |
|
|
20 |
# Try testing a create |
# Try testing a create |
21 |
my $o = SVNBrowser::Model::Branch->new(current_user => $system_user); |
my $o = SVNBrowser::Model::Branch->new(current_user => $system_user); |
22 |
my ($id) = $o->create(); |
my ($id) = $o->create( path => '/foobar/' ); |
23 |
ok($id, "Branch create returned success"); |
ok($id, "Branch create returned success"); |
24 |
ok($o->id, "New Branch has valid id set"); |
ok($o->id, "New Branch has valid id set"); |
25 |
is($o->id, $id, "Create returned the right id"); |
is($o->id, $id, "Create returned the right id"); |
26 |
|
|
27 |
# And another |
# And another |
28 |
$o->create(); |
$o->create( path => '/bazboo/' ); |
29 |
ok($o->id, "Branch create returned another value"); |
ok($o->id, "Branch create returned another value"); |
30 |
isnt($o->id, $id, "And it is different from the previous one"); |
isnt($o->id, $id, "And it is different from the previous one"); |
31 |
|
|