mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 01:27:20 +08:00
20 lines
475 B
PHP
20 lines
475 B
PHP
<?php
|
|
|
|
namespace yiiunit\extensions\authclient\oauth\signature;
|
|
|
|
use yii\authclient\signature\PlainText;
|
|
use yiiunit\extensions\authclient\TestCase;
|
|
|
|
class PlainTextTest extends TestCase
|
|
{
|
|
public function testGenerateSignature()
|
|
{
|
|
$signatureMethod = new PlainText();
|
|
|
|
$baseString = 'test_base_string';
|
|
$key = 'test_key';
|
|
|
|
$signature = $signatureMethod->generateSignature($baseString, $key);
|
|
$this->assertNotEmpty($signature, 'Unable to generate signature!');
|
|
}
|
|
} |