Skip to content

Commit

Permalink
Test for authenticated_user role with NOCHALLENGE
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwdan committed Mar 9, 2018
1 parent 4b8bba0 commit cc61476
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/WAMP/NoChallengeTest.php
Expand Up @@ -115,6 +115,12 @@ public function testAuthDetails()
$this->assertObjectHasAttribute('authmethod', $args[0]);
$this->assertEquals('auto_auth', $args[0]->authmethod);

$this->assertObjectHasAttribute('authrole', $args[0]);
$this->assertEquals('authenticated_user', $args[0]->authrole);

$this->assertObjectHasAttribute('authroles', $args[0]);
$this->assertEquals('authenticated_user', $args[0]->authroles[0]);

$this->assertNotNull($this->_resultPS);
$this->assertTrue(is_object($this->_resultPS));
$this->assertObjectHasAttribute('_thruway_authextra', $this->_resultPS);
Expand Down

0 comments on commit cc61476

Please sign in to comment.