Пример #1
0
 /**
  * Rules with `none` values should be pulled as NULL.
  */
 public function testNoneCssValues()
 {
     $exhibit = $this->_exhibit();
     $exhibit->styles = "\n            .tag {\n              point-image: none;\n            }\n        ";
     $exhibit->save();
     $record = new NeatlineRecord($exhibit);
     // Pull `tag`.
     $record->pullStyles(array('tag'));
     $record->save();
     $record = $this->_reload($record);
     // `none` should be cast to NULL.
     $this->assertNull($record->point_image);
 }