Browse Source

fixed test breaks.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
0310935e48
  1. 2
      tests/unit/extensions/elasticsearch/ElasticSearchTestCase.php
  2. 2
      tests/unit/extensions/mongodb/MongoDbTestCase.php
  3. 2
      tests/unit/extensions/redis/RedisCacheTest.php
  4. 2
      tests/unit/extensions/redis/RedisTestCase.php
  5. 2
      tests/unit/extensions/sphinx/SphinxTestCase.php
  6. 2
      tests/unit/extensions/swiftmailer/MailerTest.php
  7. 2
      tests/unit/extensions/swiftmailer/MessageTest.php

2
tests/unit/extensions/elasticsearch/ElasticSearchTestCase.php

@ -6,7 +6,7 @@ use Yii;
use yii\elasticsearch\Connection; use yii\elasticsearch\Connection;
use yiiunit\TestCase; use yiiunit\TestCase;
Yii::setAlias('@yii/elasticsearch', __DIR__ . '/../../../../extensions/elasticsearch'); Yii::setAlias('@yii/elasticsearch', __DIR__ . '/../../../../extensions/yii/elasticsearch');
/** /**
* ElasticSearchTestCase is the base class for all elasticsearch related test cases * ElasticSearchTestCase is the base class for all elasticsearch related test cases

2
tests/unit/extensions/mongodb/MongoDbTestCase.php

@ -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);

2
tests/unit/extensions/redis/RedisCacheTest.php

@ -6,7 +6,7 @@ use yii\redis\Cache;
use yii\redis\Connection; use yii\redis\Connection;
use yiiunit\framework\caching\CacheTestCase; use yiiunit\framework\caching\CacheTestCase;
Yii::setAlias('@yii/redis', __DIR__ . '/../../../../extensions/redis'); Yii::setAlias('@yii/redis', __DIR__ . '/../../../../extensions/yii/redis');
/** /**
* Class for testing redis cache backend * Class for testing redis cache backend

2
tests/unit/extensions/redis/RedisTestCase.php

@ -6,7 +6,7 @@ use Yii;
use yii\redis\Connection; use yii\redis\Connection;
use yiiunit\TestCase; use yiiunit\TestCase;
Yii::setAlias('@yii/redis', __DIR__ . '/../../../../extensions/redis'); Yii::setAlias('@yii/redis', __DIR__ . '/../../../../extensions/yii/redis');
/** /**
* RedisTestCase is the base class for all redis related test cases * RedisTestCase is the base class for all redis related test cases

2
tests/unit/extensions/sphinx/SphinxTestCase.php

@ -72,7 +72,7 @@ class SphinxTestCase extends TestCase
protected static function loadClassMap() protected static function loadClassMap()
{ {
$baseNameSpace = 'yii/sphinx'; $baseNameSpace = 'yii/sphinx';
$basePath = realpath(__DIR__. '/../../../../extensions/sphinx'); $basePath = realpath(__DIR__. '/../../../../extensions/yii/sphinx');
$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);

2
tests/unit/extensions/swiftmailer/MailerTest.php

@ -6,7 +6,7 @@ use Yii;
use yii\swiftmailer\Mailer; use yii\swiftmailer\Mailer;
use yiiunit\VendorTestCase; use yiiunit\VendorTestCase;
Yii::setAlias('@yii/swiftmailer', __DIR__ . '/../../../../extensions/swiftmailer'); Yii::setAlias('@yii/swiftmailer', __DIR__ . '/../../../../extensions/yii/swiftmailer');
/** /**
* @group vendor * @group vendor

2
tests/unit/extensions/swiftmailer/MessageTest.php

@ -8,7 +8,7 @@ use yii\swiftmailer\Mailer;
use yii\swiftmailer\Message; use yii\swiftmailer\Message;
use yiiunit\VendorTestCase; use yiiunit\VendorTestCase;
Yii::setAlias('@yii/swiftmailer', __DIR__ . '/../../../../extensions/swiftmailer'); Yii::setAlias('@yii/swiftmailer', __DIR__ . '/../../../../extensions/yii/swiftmailer');
/** /**
* @group vendor * @group vendor

Loading…
Cancel
Save