PostTest.php 290 B

123456789101112131415161718
  1. <?php
  2. class PostTest extends CDbTestCase
  3. {
  4. /**
  5. * We use both 'Post' and 'Comment' fixtures.
  6. * @see CWebTestCase::fixtures
  7. */
  8. public $fixtures=array(
  9. 'posts'=>'Post',
  10. 'comments'=>'Comment',
  11. );
  12. public function testSave()
  13. {
  14. // write code here to test post saving method
  15. }
  16. }