/**
  * Belongs to test
  *
  * @todo Inhance
  *
  * @return void
  */
 public function testBelongsTo()
 {
     $project = new Phprojekt_Project(array('db' => $this->sharedFixture));
     $expected = $project->find(2);
     $instance = new Phprojekt_ModuleInstance(array('db' => $this->sharedFixture));
     $instance->find(2);
     $actual = $instance->project;
     $this->assertEquals($expected->id, $actual->id);
 }
Beispiel #2
0
 /**
  * Belongs to test
  *
  * @todo Inhance
  *
  * @return void
  */
 public function testBelongsTo()
 {
     $instance = new Phprojekt_ModuleInstance(array('db' => $this->sharedFixture));
     $instance->find(1);
     $this->assertEquals(3, $instance->count());
 }