Example #1
0
 public function testCastPropertiesObject()
 {
     $property = 123;
     $expectedProperty = (object) 123;
     $this->ormMock->expects($this->once())->method('getValue')->with('property')->will($this->returnValue($property));
     $this->ormMock->expects($this->once())->method('setValue')->with('property', $expectedProperty);
     $this->model->castPropertiesObject(['property']);
 }