Changing Fixture Folder

Hi,

Having changed my site structure as below, I am under the impression that fixtures will still try to load from protected/tests/fixtures.

How can I change this?

new site structure______________

public/

index.php

index-test.php

images/

etc…

private/

models/

components/

tests/

etc…

and configured the index.php & index-test.php correctly so that everything runs fine.

Thanks,

Julian

after doing some more digging it seems I need to use the


CDbFixtureManager::basePath

property to change where fixtures are loaded from.

however I am not sure where to assign this so that it is changed for every test?

after more searching i realise its not my basePath its the problem solved here - http://www.yiiframework.com/forum/index.php?/topic/14507-tdd-fixtures-with-115

i should have extended from CDbTestCase not CTestCase!