We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b97342 commit 5cde5c6Copy full SHA for 5cde5c6
tests/ValidJwtTest.php
@@ -30,4 +30,19 @@ public function jwt_is_valid()
30
31
$this->assertTrue($passes);
32
}
33
+
34
+ /**
35
+ * Test jwt is not valid.
36
+ *
37
+ * @test
38
+ * @return void
39
+ */
40
+ public function jwt_is_not_valid()
41
+ {
42
+ $rules = ['jwt' => [new ValidJwt()]];
43
+ $data = ['jwt' => '1ZSwiZXhwIjoxNTgyNjE2MDA1fQ.umEYVDP_kZJGCI3tkU9dmq7CIumEU8Zvftc-klp-334'];
44
+ $passes = $this->app['validator']->make($data, $rules)->passes();
45
46
+ $this->assertFalse($passes);
47
+ }
48
0 commit comments