コード例 #1
0
 public function testSetRelationshipTypeWithoutLoadRelationships()
 {
     $options = array('field_name' => 'foo');
     $this->validator->shouldReceive('arrayGet')->once()->andReturn('relationship');
     $this->factory->shouldReceive('getRelationshipKey')->once()->andReturn('foo');
     $this->factory->setRelationshipType($options, false);
     $this->assertEquals($options['load_relationships'], false);
 }