Ребята, помогите разобраться с такой штуковиной… в общем смысл заключается в чем, пишу тест для модуля , тест выглядит приблизительно следующим образом
class PageadminTest extends CDbTestCase
{
public $fixtures = array('pages' => 'PageModule');
public function testUpdate()
{
$page = new Page();
$page->setAttributes(array(
'id' => $this->pages['field1']['id'],
'partner_id' => $this->pages['field1']['partner_id'],
'sef' => $this->pages['field1']['sef'],
'title' => $this->pages['field1']['title'],
'keywords' => $this->pages['field1']['keywords'],
'descr' => $this->pages['field1']['descr'],
'text' => $this->pages['field1']['text'],
'added' => $this->pages['field1']['added'],
'updated' => $this->pages['field1']['updated'],
'creator_id' => $this->pages['field1']['creator_id'],
'updater_id' => $this->pages['field1']['updater_id'],
'is_available' => $this->pages['field1']['is_available'],
),false);
$this->assertTrue($page->save(false));
}
}
файл import.php
<?php
return array(
'application.models.*',
'application.components.*',
'application.components.abstract.*',
'application.widgets.*',
'application.modules.pageadmin.models.*',
'application.modules.*',
);
ошибка следующая
Configuration read from /var/www/htdocs/localhost/trunk/protected/tests/phpunit.xml
E
Time: 0 seconds, Memory: 12.00Mb
There was 1 error:
1) PageadminTest::testUpdate
include(PageModule.php): failed to open stream: No such file or directory
/var/www/htdocs/localhost/trunk/framework/YiiBase.php:396
/var/www/htdocs/localhost/trunk/framework/YiiBase.php:396
/var/www/htdocs/localhost/trunk/framework/YiiBase.php:291
/var/www/htdocs/localhost/trunk/framework/test/CDbFixtureManager.php:297
/var/www/htdocs/localhost/trunk/framework/test/CDbTestCase.php:116
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
структура модуля pageadmin в аттаче
не бросайте… помогите(