mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 01:27:20 +08:00
fixed test braek
This commit is contained in:
@ -118,4 +118,12 @@ class Order extends ActiveRecord
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'customer_id' => 'Customer',
|
||||
'total' => 'Invoice Total',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,16 +9,21 @@ use yii\db\Query;
|
||||
use yii\widgets\Breadcrumbs;
|
||||
use yii\widgets\LinkSorter;
|
||||
use yii\widgets\ListView;
|
||||
use yiiunit\data\ar\elasticsearch\Order;
|
||||
use yiiunit\data\ar\ActiveRecord;
|
||||
use yiiunit\data\ar\Order;
|
||||
use yiiunit\framework\db\DatabaseTestCase;
|
||||
|
||||
/**
|
||||
* @group widgets
|
||||
*/
|
||||
class LinkSorterTest extends \yiiunit\TestCase
|
||||
class LinkSorterTest extends DatabaseTestCase
|
||||
{
|
||||
protected $driverName = 'sqlite';
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
ActiveRecord::$db = $this->getConnection();
|
||||
$this->mockWebApplication();
|
||||
$this->breadcrumbs = new Breadcrumbs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user