18 lines
290 B
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
|
|
}
|
|
} |