コード例 #1
0
 public function testGetParent()
 {
     $adminMock = $this->getMock('Sonata\\AdminBundle\\Admin\\AdminInterface');
     $field = new FieldDescription();
     $field->setParent($adminMock);
     $this->assertSame($adminMock, $field->getParent());
 }