PlainTextTest.php 515 Bytes
Newer Older
1 2 3 4
<?php

namespace yiiunit\extensions\authclient\oauth\signature;

5
use yii\authclient\signature\PlainText;
6 7 8 9
use yiiunit\extensions\authclient\TestCase;

class PlainTextTest extends TestCase
{
10 11 12
    public function testGenerateSignature()
    {
        $signatureMethod = new PlainText();
13

14 15
        $baseString = 'test_base_string';
        $key = 'test_key';
16

17 18 19
        $signature = $signatureMethod->generateSignature($baseString, $key);
        $this->assertNotEmpty($signature, 'Unable to generate signature!');
    }
AlexGx committed
20
}