fixed test braek

This commit is contained in:
Carsten Brandt
2015-03-25 18:34:20 +01:00
parent 40ff302f04
commit 800391f67a
2 changed files with 15 additions and 2 deletions

View File

@ -118,4 +118,12 @@ class Order extends ActiveRecord
return false;
}
}
public function attributeLabels()
{
return [
'customer_id' => 'Customer',
'total' => 'Invoice Total',
];
}
}

View File

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