Fix tests as no longer set the default scope in the constructor

Use new setDefaultScope() method instead. Also changed default scope to
be a blank string instead of null
This commit is contained in:
Andrew Millington
2017-10-30 23:48:02 +00:00
parent a49f6ff80d
commit 3828f87b19
3 changed files with 16 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ class AuthorizationServer implements EmitterAwareInterface
/**
* @var string
*/
private $defaultScope = null;
private $defaultScope = '';
/**
* New server instance.
@@ -209,4 +209,14 @@ class AuthorizationServer implements EmitterAwareInterface
return $this->responseType;
}
/**
* Set the default scope for the authorization server.
*
* @param string $defaultScope
*/
public function setDefaultScope($defaultScope)
{
$this->defaultScope = $defaultScope;
}
}