| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class MemberExtensionTest extends SapphireTest |
||
| 17 | { |
||
| 18 | protected static $fixture_file = '../fixtures/JWTAuthenticatorTest.yml'; |
||
| 19 | |||
| 20 | protected function setUp() |
||
| 21 | { |
||
| 22 | return parent::setUp(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testMemberExists() |
||
| 26 | { |
||
| 27 | $member = $this->objFromFixture(Member::class, 'admin'); |
||
| 28 | $data = $member->getJWTData(); |
||
| 29 | $result = Convert::json2obj($data); |
||
| 30 | |||
| 31 | $this->assertEquals($member->ID, $result->id); |
||
| 32 | $this->assertEquals($member->Email, $result->userName); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testNoMember() |
||
| 43 | } |
||
| 44 | } |