mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
update tests for 61b33446cd
This commit is contained in:
parent
654bde9278
commit
479ded0c72
1 changed files with 8 additions and 8 deletions
|
@ -115,7 +115,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $opt{with_token} ) {
|
if ( $opt{with_token} ) {
|
||||||
|
@ -124,7 +124,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
login(
|
login(
|
||||||
|
@ -139,7 +139,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
# users can see their own status with token if visibility is >= unlisted
|
# users can see their own status with token if visibility is >= unlisted
|
||||||
|
@ -149,7 +149,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
logout();
|
logout();
|
||||||
|
@ -165,7 +165,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
# uid2 can see uid1 with token if visibility is >= unlisted
|
# uid2 can see uid1 with token if visibility is >= unlisted
|
||||||
|
@ -175,7 +175,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
logout();
|
logout();
|
||||||
|
@ -191,7 +191,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
# uid3 can see uid1 with token if visibility is >= unlisted
|
# uid3 can see uid1 with token if visibility is >= unlisted
|
||||||
|
@ -201,7 +201,7 @@ sub test_journey_visibility {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
$t->get_ok("/p/test1/j/$jid$token")->status_is(404)
|
||||||
->content_like(qr{Zugfahrt nicht gefunden.});
|
->content_like(qr{Fahrt nicht gefunden.});
|
||||||
}
|
}
|
||||||
|
|
||||||
logout();
|
logout();
|
||||||
|
|
Loading…
Reference in a new issue