public function testAnyRelation() { $p = Project::findByName('Model Getter Setter Project')->one(); $pa = new ProjectActivity(); $pa->id = 100; $pa->projectId = $p->id; $pa->name = 'Model Getter Setter Project Activity'; $pa->insert(); $this->assertNotNull($pa->id); $this->assertEquals($pa->project->id, $p->id); $this->assertEquals($pa->project()->id, $p->id); $this->assertEquals($pa->getSenseless(['value']), 'senseless_value'); $this->assertEquals($pa->senseless('value'), 'senseless_value'); }