Example #1
0
 public function testEscapePropertiesHtml()
 {
     $property = '<div>property</div>';
     $expectedProperty = '&lt;div&gt;property&lt;/div&gt;';
     $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->escapePropertiesHtml(['property']);
 }