| 123456789101112131415161718 |
- <?php
- class PostTest extends CDbTestCase
- {
- /**
- * We use both 'Post' and 'Comment' fixtures.
- * @see CWebTestCase::fixtures
- */
- public $fixtures=array(
- 'posts'=>'Post',
- 'comments'=>'Comment',
- );
- public function testSave()
- {
- // write code here to test post saving method
- }
- }
|