Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
3a347c35
Commit
3a347c35
authored
Sep 18, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added property docs to AR test classes
parent
ef13a11f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
Customer.php
tests/unit/data/ar/Customer.php
+9
-0
Item.php
tests/unit/data/ar/Item.php
+7
-0
Order.php
tests/unit/data/ar/Order.php
+8
-0
OrderItem.php
tests/unit/data/ar/OrderItem.php
+8
-0
No files found.
tests/unit/data/ar/Customer.php
View file @
3a347c35
...
@@ -3,6 +3,15 @@ namespace yiiunit\data\ar;
...
@@ -3,6 +3,15 @@ namespace yiiunit\data\ar;
use
yii\db\ActiveQuery
;
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
class
Customer
extends
ActiveRecord
{
{
const
STATUS_ACTIVE
=
1
;
const
STATUS_ACTIVE
=
1
;
...
...
tests/unit/data/ar/Item.php
View file @
3a347c35
...
@@ -2,6 +2,13 @@
...
@@ -2,6 +2,13 @@
namespace
yiiunit\data\ar
;
namespace
yiiunit\data\ar
;
/**
* Class Item
*
* @property integer $id
* @property string $name
* @property integer $category_id
*/
class
Item
extends
ActiveRecord
class
Item
extends
ActiveRecord
{
{
public
static
function
tableName
()
public
static
function
tableName
()
...
...
tests/unit/data/ar/Order.php
View file @
3a347c35
...
@@ -2,6 +2,14 @@
...
@@ -2,6 +2,14 @@
namespace
yiiunit\data\ar
;
namespace
yiiunit\data\ar
;
/**
* Class Order
*
* @property integer $id
* @property integer $customer_id
* @property integer $create_time
* @property string $total
*/
class
Order
extends
ActiveRecord
class
Order
extends
ActiveRecord
{
{
public
static
function
tableName
()
public
static
function
tableName
()
...
...
tests/unit/data/ar/OrderItem.php
View file @
3a347c35
...
@@ -2,6 +2,14 @@
...
@@ -2,6 +2,14 @@
namespace
yiiunit\data\ar
;
namespace
yiiunit\data\ar
;
/**
* Class OrderItem
*
* @property integer $order_id
* @property integer $item_id
* @property integer $quantity
* @property string $subtotal
*/
class
OrderItem
extends
ActiveRecord
class
OrderItem
extends
ActiveRecord
{
{
public
static
function
tableName
()
public
static
function
tableName
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment