Added DB Access + Error page
This commit is contained in:
18
demos/blog/protected/tests/unit/PostTest.php
Normal file
18
demos/blog/protected/tests/unit/PostTest.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user