Encourage login on zero matches (fixes #67)

Change-Id: Ic7805d2286de9fc24d06ca94c71b7ab4890f7973
diff --git a/t/plugin/auth-oauth.t b/t/plugin/auth-oauth.t
index b211eab..802f9d2 100644
--- a/t/plugin/auth-oauth.t
+++ b/t/plugin/auth-oauth.t
@@ -213,6 +213,15 @@
   ->element_exists('div.button.top a.logout[title~="test"]')
   ;
 
+$t->get_ok('/?q=Paum')
+  ->status_is(200)
+  ->text_like('h1 span', qr/KorAP: Find .Paum./i)
+  ->text_is('#total-results', '')
+  ->content_like(qr/\"authorized\"\:\"yes\"/)
+  ->element_exists_not('p.hint')
+  ;
+
+
 # Logout
 $t->get_ok('/user/logout')
   ->status_is(302)
@@ -237,6 +246,15 @@
   ->content_like(qr/\"authorized\"\:null/)
   ;
 
+$t->get_ok('/?q=Paum')
+  ->status_is(200)
+  ->text_like('h1 span', qr/KorAP: Find .Paum./i)
+  ->text_is('#total-results', '')
+  ->content_like(qr/\"authorized\"\:null/)
+  ->text_is('p.hint', 'Maybe you need to log in first?')
+  ;
+
+
 # Get redirect
 my $fwd = $t->get_ok('/?q=Baum&ql=poliqarp')
   ->status_is(200)