1
0
www.mikescher.com/demos/blog/protected/tests/unit/PostTest.php

18 lines
290 B
PHP

<?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
}
}