| @@ 344-357 (lines=14) @@ | ||
| 341 | $this->assertEquals($expected, $result); |
|
| 342 | } |
|
| 343 | ||
| 344 | public function testEditMarker() |
|
| 345 | { |
|
| 346 | $input = 'pre [e] post'; |
|
| 347 | $expected = [ |
|
| 348 | 'pre ', |
|
| 349 | 'span' => [ |
|
| 350 | 'class' => 'richtext-editMark' |
|
| 351 | ], |
|
| 352 | '/span', |
|
| 353 | ' post' |
|
| 354 | ]; |
|
| 355 | $result = $this->_Parser->parse($input); |
|
| 356 | $this->assertHtml($expected, $result); |
|
| 357 | } |
|
| 358 | ||
| 359 | /* |
|
| 360 | * without obfuscator |
|
| @@ 1103-1119 (lines=17) @@ | ||
| 1100 | $this->assertEquals($result, $expected); |
|
| 1101 | } |
|
| 1102 | ||
| 1103 | public function testEmbedNoReplacement() |
|
| 1104 | { |
|
| 1105 | $input = '[embed]http://no.provider/unreplaced[/embed]'; |
|
| 1106 | ||
| 1107 | $result = $this->_Parser->parse($input); |
|
| 1108 | ||
| 1109 | $expected = [ |
|
| 1110 | 'div' => [ |
|
| 1111 | 'class' => 'js-embed', |
|
| 1112 | 'data-embed' => '{"url":"http:\/\/no.provider\/unreplaced"}', |
|
| 1113 | 'id' => 'embed-10478631dd9f8f00da95953f63f6e5f3', |
|
| 1114 | ], |
|
| 1115 | '/div', |
|
| 1116 | ]; |
|
| 1117 | ||
| 1118 | $this->assertHtml($expected, $result); |
|
| 1119 | } |
|
| 1120 | ||
| 1121 | public function testEmbedDisabledWithoutAutolinking() |
|
| 1122 | { |
|