Update v1.0.6
This commit is contained in:
28
vendor/tymon/jwt-auth/tests/Providers/JWT/JWTProviderTest.php
vendored
Normal file
28
vendor/tymon/jwt-auth/tests/Providers/JWT/JWTProviderTest.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Tymon\JWTAuth\Test\Providers\JWT;
|
||||
|
||||
use Mockery;
|
||||
use Illuminate\Http\Request;
|
||||
use Tymon\JWTAuth\Test\Stubs\JWTProviderStub;
|
||||
|
||||
class JWTProviderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
$this->provider = new JWTProviderStub('secret', 'HS256');
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
Mockery::close();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_should_set_the_algo()
|
||||
{
|
||||
$this->provider->setAlgo('HS512');
|
||||
|
||||
$this->assertEquals('HS512', $this->provider->getAlgo());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user