|
@@ 344-351 (lines=8) @@
|
| 341 |
|
$this->assertEquals($expectedValue, $result); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
public function testRAW() |
| 345 |
|
{ |
| 346 |
|
$data = DBField::create_field('HTMLFragment', 'This & This'); |
| 347 |
|
$this->assertEquals('This & This', $data->RAW()); |
| 348 |
|
|
| 349 |
|
$data = DBField::create_field('HTMLFragment', 'This & This'); |
| 350 |
|
$this->assertEquals('This & This', $data->RAW()); |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
public function testXML() |
| 354 |
|
{ |
|
@@ 353-359 (lines=7) @@
|
| 350 |
|
$this->assertEquals('This & This', $data->RAW()); |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
public function testXML() |
| 354 |
|
{ |
| 355 |
|
$data = DBField::create_field('HTMLFragment', 'This & This'); |
| 356 |
|
$this->assertEquals('This & This', $data->XML()); |
| 357 |
|
$data = DBField::create_field('HTMLFragment', 'This & This'); |
| 358 |
|
$this->assertEquals('This & This', $data->XML()); |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
public function testHTML() |
| 362 |
|
{ |
|
@@ 361-367 (lines=7) @@
|
| 358 |
|
$this->assertEquals('This & This', $data->XML()); |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
public function testHTML() |
| 362 |
|
{ |
| 363 |
|
$data = DBField::create_field('HTMLFragment', 'This & This'); |
| 364 |
|
$this->assertEquals('This & This', $data->HTML()); |
| 365 |
|
$data = DBField::create_field('HTMLFragment', 'This & This'); |
| 366 |
|
$this->assertEquals('This & This', $data->HTML()); |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
public function testJS() |
| 370 |
|
{ |
|
@@ 375-384 (lines=10) @@
|
| 372 |
|
$this->assertEquals('\"this is \x26amp; test\"', $data->JS()); |
| 373 |
|
} |
| 374 |
|
|
| 375 |
|
public function testATT() |
| 376 |
|
{ |
| 377 |
|
// HTML Fragment |
| 378 |
|
$data = DBField::create_field('HTMLFragment', '"this is a test"'); |
| 379 |
|
$this->assertEquals('"this is a test"', $data->ATT()); |
| 380 |
|
|
| 381 |
|
// HTML Text (passes shortcodes + tidy) |
| 382 |
|
$data = DBField::create_field('HTMLText', '"'); |
| 383 |
|
$this->assertEquals('"', $data->ATT()); |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
public function testShortcodesProcessed() |
| 387 |
|
{ |