mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Fixed reference to renamed methods and properties
This commit is contained in:
parent
c92dc8f759
commit
b485f15e83
@ -369,10 +369,10 @@ class Authentication_Server_test extends PHPUnit_Framework_TestCase {
|
|||||||
function test_noRegisteredDatabaseAbstractor()
|
function test_noRegisteredDatabaseAbstractor()
|
||||||
{
|
{
|
||||||
$reflector = new ReflectionClass($this->oauth);
|
$reflector = new ReflectionClass($this->oauth);
|
||||||
$method = $reflector->getMethod('dbcall');
|
$method = $reflector->getMethod('_dbCall');
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
|
||||||
$dbAbstractor = $reflector->getProperty('db');
|
$dbAbstractor = $reflector->getProperty('_db');
|
||||||
$dbAbstractor->setAccessible(true);
|
$dbAbstractor->setAccessible(true);
|
||||||
$dbAbstractor->setValue($this->oauth, null);
|
$dbAbstractor->setValue($this->oauth, null);
|
||||||
|
|
||||||
@ -389,7 +389,7 @@ class Authentication_Server_test extends PHPUnit_Framework_TestCase {
|
|||||||
$this->oauth->registerDbAbstractor($fake);
|
$this->oauth->registerDbAbstractor($fake);
|
||||||
|
|
||||||
$reflector = new ReflectionClass($this->oauth);
|
$reflector = new ReflectionClass($this->oauth);
|
||||||
$method = $reflector->getMethod('dbcall');
|
$method = $reflector->getMethod('_dbCall');
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
|
||||||
$result = $method->invoke($this->oauth);
|
$result = $method->invoke($this->oauth);
|
||||||
|
Loading…
Reference in New Issue
Block a user