@@ 9-37 (lines=29) @@ | ||
6 | use Isign\Tests\TestCase; |
|
7 | use Isign\Tests\TestResultFieldsTrait; |
|
8 | ||
9 | class ScVerifyResultTest extends TestCase |
|
10 | { |
|
11 | /** @var ScVerifyResult */ |
|
12 | private $method; |
|
13 | ||
14 | public function setUp() |
|
15 | { |
|
16 | $this->method = new ScVerifyResult(); |
|
17 | } |
|
18 | ||
19 | public function testStatusInterface() |
|
20 | { |
|
21 | $this->assertInstanceOf('Isign\StatusResultInterface', $this->method); |
|
22 | } |
|
23 | ||
24 | use TestResultFieldsTrait; |
|
25 | ||
26 | public function expectedFields() |
|
27 | { |
|
28 | return [ |
|
29 | ['status'], |
|
30 | ['name'], |
|
31 | ['surname'], |
|
32 | ['code'], |
|
33 | ['email'], |
|
34 | ['country'], |
|
35 | ]; |
|
36 | } |
|
37 | } |
|
38 |
@@ 8-40 (lines=33) @@ | ||
5 | use Isign\Tests\TestCase; |
|
6 | use Isign\Tests\TestResultFieldsTrait; |
|
7 | ||
8 | class SmartIdCertificateResultTest extends TestCase |
|
9 | { |
|
10 | private $method; |
|
11 | ||
12 | public function setUp() |
|
13 | { |
|
14 | $this->method = new SmartIdCertificateResult(); |
|
15 | } |
|
16 | ||
17 | public function testStatusInterface() |
|
18 | { |
|
19 | $this->assertInstanceOf('Isign\StatusResultInterface', $this->method); |
|
20 | } |
|
21 | ||
22 | public function testExtendsStatusResult() |
|
23 | { |
|
24 | $this->assertInstanceOf('Isign\Login\SmartIdStatusResult', $this->method); |
|
25 | } |
|
26 | ||
27 | use TestResultFieldsTrait; |
|
28 | ||
29 | public function expectedFields() |
|
30 | { |
|
31 | return [ |
|
32 | ['status'], |
|
33 | ['certificate'], |
|
34 | ['code'], |
|
35 | ['country'], |
|
36 | ['name'], |
|
37 | ['surname'], |
|
38 | ]; |
|
39 | } |
|
40 | } |
|
41 |
@@ 10-42 (lines=33) @@ | ||
7 | use Isign\Tests\TestResultFieldsTrait; |
|
8 | use Isign\Tests\Login\SmartIdStatusTest; |
|
9 | ||
10 | class SmartIdStatusResultTest extends TestCase |
|
11 | { |
|
12 | private $method; |
|
13 | ||
14 | public function setUp() |
|
15 | { |
|
16 | $this->method = new SmartIdStatusResult(); |
|
17 | } |
|
18 | ||
19 | public function testStatusInterface() |
|
20 | { |
|
21 | $this->assertInstanceOf('Isign\StatusResultInterface', $this->method); |
|
22 | } |
|
23 | ||
24 | public function testExtendsStatusResultAbstract() |
|
25 | { |
|
26 | $this->assertInstanceOf('Isign\Login\AbstractStatusResult', $this->method); |
|
27 | } |
|
28 | ||
29 | use TestResultFieldsTrait; |
|
30 | ||
31 | public function expectedFields() |
|
32 | { |
|
33 | return [ |
|
34 | ['status'], |
|
35 | ['certificate'], |
|
36 | ['code'], |
|
37 | ['country'], |
|
38 | ['name'], |
|
39 | ['surname'], |
|
40 | ]; |
|
41 | } |
|
42 | } |
|
43 |