|
|
@ -57,7 +57,7 @@ class MongoDbTestCase extends TestCase |
|
|
|
protected static function loadClassMap() |
|
|
|
protected static function loadClassMap() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$baseNameSpace = 'yii/mongodb'; |
|
|
|
$baseNameSpace = 'yii/mongodb'; |
|
|
|
$basePath = realpath(__DIR__. '/../../../../extensions/mongodb'); |
|
|
|
$basePath = realpath(__DIR__. '/../../../../extensions/yii/mongodb'); |
|
|
|
$files = FileHelper::findFiles($basePath); |
|
|
|
$files = FileHelper::findFiles($basePath); |
|
|
|
foreach ($files as $file) { |
|
|
|
foreach ($files as $file) { |
|
|
|
$classRelativePath = str_replace($basePath, '', $file); |
|
|
|
$classRelativePath = str_replace($basePath, '', $file); |
|
|
@ -146,4 +146,4 @@ class MongoDbTestCase extends TestCase |
|
|
|
$buildInfo = $connection->getDatabase()->executeCommand(['buildinfo' => true]); |
|
|
|
$buildInfo = $connection->getDatabase()->executeCommand(['buildinfo' => true]); |
|
|
|
return $buildInfo['version']; |
|
|
|
return $buildInfo['version']; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|