芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/yii/demos/blog/protected/tests/functional/PostTest.php
'Post', ); public function testIndex() { $this->open(''); // verify header title exists $this->assertTextPresent('Yii Blog Demo'); // verify the sample post title exists $this->assertTextPresent($this->posts['sample1']['title']); } public function testView() { $this->open('post/1/xyz'); // verify the sample post title exists $this->assertTextPresent($this->posts['sample1']['title']); // verify comment form exists $this->assertTextPresent('Leave a Comment'); } }