Browse Source

added property docs to AR test classes

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
3a347c3587
  1. 9
      tests/unit/data/ar/Customer.php
  2. 7
      tests/unit/data/ar/Item.php
  3. 8
      tests/unit/data/ar/Order.php
  4. 8
      tests/unit/data/ar/OrderItem.php

9
tests/unit/data/ar/Customer.php

@ -3,6 +3,15 @@ namespace yiiunit\data\ar;
use yii\db\ActiveQuery;
/**
* Class Customer
*
* @property integer $id
* @property string $name
* @property string $email
* @property string $address
* @property integer $status
*/
class Customer extends ActiveRecord
{
const STATUS_ACTIVE = 1;

7
tests/unit/data/ar/Item.php

@ -2,6 +2,13 @@
namespace yiiunit\data\ar;
/**
* Class Item
*
* @property integer $id
* @property string $name
* @property integer $category_id
*/
class Item extends ActiveRecord
{
public static function tableName()

8
tests/unit/data/ar/Order.php

@ -2,6 +2,14 @@
namespace yiiunit\data\ar;
/**
* Class Order
*
* @property integer $id
* @property integer $customer_id
* @property integer $create_time
* @property string $total
*/
class Order extends ActiveRecord
{
public static function tableName()

8
tests/unit/data/ar/OrderItem.php

@ -2,6 +2,14 @@
namespace yiiunit\data\ar;
/**
* Class OrderItem
*
* @property integer $order_id
* @property integer $item_id
* @property integer $quantity
* @property string $subtotal
*/
class OrderItem extends ActiveRecord
{
public static function tableName()

Loading…
Cancel
Save