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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
5ac1ec5d
Commit
5ac1ec5d
authored
Jan 17, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc fix.
parent
12ff8630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test-fixture.md
docs/guide/test-fixture.md
+3
-2
No files found.
docs/guide/test-fixture.md
View file @
5ac1ec5d
...
...
@@ -105,9 +105,10 @@ Using Fixtures
Yii provides
[
[yii\test\FixtureTrait
]
] which can be plugged into your test classes to let you easily load and access
fixtures. More often you would develop your test cases by using the
`yii2-codeception`
extension
which has the built-in support for the loading and accessing fixtures. In the following we will describe how to do so.
which uses
[
[yii\test\FixtureTrait
]
] and has the built-in support for the loading and accessing fixtures.
In the following we will describe how to write a
`UserProfile`
unit test class using
`yii2-codeception`
.
In your
test case class extending
[
[yii\codeception\TestCase
]
], you
declare which fixtures you want to use
In your
unit test class extending
[
[yii\codeception\TestCase
]
],
declare which fixtures you want to use
in the
[
[yii\testFixtureTrait::fixtures()|fixtures()
]
] method. For example,
```
php
...
...
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