@@ -259,9 +259,9 @@ public function testCreateWithParametersCallsPost()
259259 // Test values
260260 $ getResponse = 'API Response ' ;
261261 $ parameters = [
262- 'title ' => 'Test Wikipage ' ,
263- 'comments ' => 'Initial Edit ' ,
264- 'text ' => 'Some page text ' ,
262+ 'title ' => 'Test Wikipage with xml entities: & < > " \' ' ,
263+ 'comments ' => 'Initial Edit with xml entities: & < > " \' ' ,
264+ 'text ' => 'Some page text with xml entities: & < > " \' ' ,
265265 ];
266266
267267 // Create the used mock objects
@@ -275,9 +275,9 @@ public function testCreateWithParametersCallsPost()
275275 $ this ->logicalAnd (
276276 $ this ->stringStartsWith ('<?xml version="1.0"?> ' ."\n" .'<wiki_page> ' ),
277277 $ this ->stringEndsWith ('</wiki_page> ' ."\n" ),
278- $ this ->stringContains ('<title>Test Wikipage</title> ' ),
279- $ this ->stringContains ('<comments>Initial Edit</comments> ' ),
280- $ this ->stringContains ('<text>Some page text</text> ' )
278+ $ this ->stringContains ('<title>Test Wikipage with xml entities: & < > " \' </title> ' ),
279+ $ this ->stringContains ('<comments>Initial Edit with xml entities: & < > " \' </comments> ' ),
280+ $ this ->stringContains ('<text>Some page text with xml entities: & < > " \' </text> ' )
281281 )
282282 )
283283 ->willReturn ($ getResponse );
0 commit comments