1) ProjectTest::testGetUserOptions Failed asserting that false is true. /trackstar/protected/tests/unit/ProjectTest.php:69 FAILURES! Tests: 5, Assertions: 12, Failures: 1.
The line it is pertaining too is the last assertTrue:
public function testGetUserOptions()
{
$project = $this->projects('project1');
$options = $project->userOptions;
$this->assertTrue(is_array($options));
$this->assertTrue(count($options) > 0);
}
So I started looking around. Low and behold when I query for all the records in my tbl_user from the trackstar_test database that is configured I get nothing. MySQL tells me the table is empty.
So I experimented, I added data to the table. Ran the unit test again. It fails. Table is empty again.
Now quoting from the Definitive Guide to Yii on this site
Quote
When CDbFixtureManager is referenced for the first time, it will go through every fixture file and use it to reset the corresponding table. It resets a table by truncating the table, resetting the sequence value for the table's auto-incremental primary key, and then inserting the rows of data from the fixture file into the table.
So this leads me to believe something is either wrong with my fixtures or Yii. Odd since they were working just last night and I have not changed them. However, I cannot find anything wrong with them.
My ProjectTest.php has the fixtures defined as:
public $fixtures = array( 'projects' => 'Project', 'users' => 'User', 'projUsrAssign' => ':tbl_project_user_assignment', );
I am either about to lose my mind or I have to blame Yii...
Anyone have any ideas? Let me know what info I can provide to help.

Help













