@@ -34,7 +34,6 @@ public function testCreateCreatesASessionAndReturnsAToken(): void
3434 $ current_user = auth \CurrentUser::get ();
3535 $ session = auth \CurrentUser::session ();
3636 $ this ->assertNotNull ($ current_user );
37- $ this ->assertNotNull ($ session );
3837 $ this ->assertSame ($ user ->id , $ current_user ->id );
3938 $ this ->assertSame ($ app_name , $ session ->name );
4039 $ this ->assertApiResponse ($ response , [
@@ -63,9 +62,7 @@ public function testCreateFailsIfAppNameIsMissing(): void
6362
6463 $ this ->assertResponseCode ($ response , 400 );
6564 $ current_user = auth \CurrentUser::get ();
66- $ session = auth \CurrentUser::session ();
6765 $ this ->assertNull ($ current_user );
68- $ this ->assertNull ($ session );
6966 $ this ->assertApiError (
7067 $ response ,
7168 'app_name ' ,
@@ -94,9 +91,7 @@ public function testCreateFailsIfEmailIsInvalid(): void
9491
9592 $ this ->assertResponseCode ($ response , 400 );
9693 $ current_user = auth \CurrentUser::get ();
97- $ session = auth \CurrentUser::session ();
9894 $ this ->assertNull ($ current_user );
99- $ this ->assertNull ($ session );
10095 $ this ->assertApiError (
10196 $ response ,
10297 '@base ' ,
@@ -125,9 +120,7 @@ public function testCreateFailsIfPasswordIsInvalid(): void
125120
126121 $ this ->assertResponseCode ($ response , 400 );
127122 $ current_user = auth \CurrentUser::get ();
128- $ session = auth \CurrentUser::session ();
129123 $ this ->assertNull ($ current_user );
130- $ this ->assertNull ($ session );
131124 $ this ->assertApiError (
132125 $ response ,
133126 '@base ' ,
@@ -140,8 +133,6 @@ public function testDeleteInvalidatesCurrentSession(): void
140133 $ user = $ this ->login ();
141134 $ session = auth \CurrentUser::session ();
142135
143- $ this ->assertNotNull ($ session );
144-
145136 $ response = $ this ->apiRun ('DELETE ' , '/api/v1/session ' );
146137
147138 $ this ->assertResponseCode ($ response , 200 );
0 commit comments