Lines Matching refs:this

15         $this->pluginsEnabled[] = 'move';
51 $this->assertFalse($plan->inProgress());
58 $this->assertSame(1, $plan->nextStep(),'pages');
59 $this->assertSame(1, $plan->nextStep(),'media');
60 $this->assertSame(1, $plan->nextStep(),'missing');
61 $this->assertSame(1, $plan->nextStep(),'namespace');
62 $this->assertSame(1, $plan->nextStep(),'autorewrite');
63 $this->assertSame(0, $plan->nextStep(),'done');
65 $this->assertFileExists(wikiFN('foo:dokuwiki'));
66 $this->assertFileNotExists(wikiFN('wiki:syntax'));
67 $this->assertFileExists(mediaFN('foo:dokuwiki-128.png'));
83 $this->assertFalse($plan->inProgress());
89 $this->assertSame(1, $plan->nextStep(),'page');
90 $this->assertSame(1, $plan->nextStep(),'missing');
91 $this->assertSame(1, $plan->nextStep(),'namespace');
92 $this->assertSame(1, $plan->nextStep(),'autorewrite');
93 $this->assertSame(0, $plan->nextStep(),'done');
95 $this->assertFileExists(wikiFN('newspace:page'));
96 $this->assertFileNotExists(wikiFN('oldspace:page'));
98 $this->assertEquals('[[missing]]', rawWiki('newspace:page'));
111 $this->assertFalse($plan->inProgress());
118 $this->assertSame('newaffectedspace:page',trim($affected_file[0]));
129 $this->markTestSkipped(
187 $this->assertFalse($plan->inProgress());
195 $this->assertSame(10, $plan->nextStep(),"After processing first chunk of pages, 10 steps should be left");
209 $this->assertSame($expected_response,$actual_response); // todo: this assert fails occaisionally, but not reproduciably. It then has the following oputput: <a href="/./doku.php?id=testns:start" class="wikilink2" title="testns:start" rel="nofollow">testns</a> <a href="/./doku.php?id=testns:test_page17" class="wikilink1" title="testns:test_page17">test_page17</a>
214 $this->assertSame($expected_file_contents,$actual_file_contents);
220 $this->assertSame($expected_move_meta,$actual_move_media);
221 $this->assertFileExists($lockfile);
248 $this->assertFalse($plan->inProgress());
254 $this->assertSame(1, $plan->nextStep(), 'pages');
255 $this->assertSame(1, $plan->nextStep(), 'missing');
256 $this->assertSame(1, $plan->nextStep(), 'namespace');
257 $this->assertSame(1, $plan->nextStep(), 'autorewrite');
258 $this->assertSame(0, $plan->nextStep(), 'done');
260 $this->assertFileExists(wikiFN('newns:start'));
261 $this->assertFileExists(wikiFN('newns:page'));
262 $this->assertFileNotExists(wikiFN('oldns:start'));
263 $this->assertFileNotExists(wikiFN('oldns:page'));
265 $this->assertSame('[[newns:start]] [[newns:page]] [[newns:missing]] [[missing]] [[page]]',rawWiki('newns:start'));
266 $this->assertSame('[[newns:start]] [[newns:page]] [[newns:missing]] [[missing]] [[start]]',rawWiki('newns:page'));
267 $this->assertSame('[[newns:start]] [[newns:page]] [[newns:missing]]',rawWiki('start'));
291 $this->assertFalse($plan->inProgress());
297 $this->assertSame(1, $plan->nextStep(), 'media');
298 $this->assertSame(1, $plan->nextStep(), 'missing_media');
299 $this->assertSame(1, $plan->nextStep(), 'autorewrite');
300 $this->assertSame(0, $plan->nextStep(), 'done');
302 $this->assertFileExists(mediaFN('newns:oldnsimage.png'));
303 $this->assertFileNotExists(mediaFN('oldns:oldnsimage.png'));
305 $this->assertSame('{{newns:oldnsimage.png}} {{newns:oldnsimage_missing.png}} {{image_missing.png}}',rawWiki('start'));
329 $this->assertFalse($plan->inProgress());
335 $this->assertSame(1, $plan->nextStep(), 'media');
336 $this->assertSame(1, $plan->nextStep(), 'missing_media');
337 $this->assertSame(1, $plan->nextStep(), 'autorewrite');
338 $this->assertSame(0, $plan->nextStep(), 'done');
340 $this->assertFileExists(mediaFN('newns:oldnsimage.png'));
341 $this->assertFileNotExists(mediaFN('oldns:oldnsimage.png'));
343 $this->assertSame('{{newns:oldnsimage.png}} {{newns:oldnsimage_missing.png}} {{newns:oldnsimage_missing.png}} {{newns:oldnsimage.png}}',rawWiki('oldns:start'));
371 $this->assertFalse($plan->inProgress());
378 $this->assertSame(1, $plan->nextStep(), 'pages');
379 $this->assertSame(1, $plan->nextStep(), 'media');
380 $this->assertSame(1, $plan->nextStep(), 'missing');
381 $this->assertSame(1, $plan->nextStep(), 'missing_media');
382 $this->assertSame(1, $plan->nextStep(), 'namespaces');
383 $this->assertSame(1, $plan->nextStep(), 'autorewrite');
384 $this->assertSame(0, $plan->nextStep(), 'done');
386 $this->assertFileExists(mediaFN('newns:oldnsimage.png'));
387 $this->assertFileNotExists(mediaFN('oldns:oldnsimage.png'));
389 $this->assertSame("[[newns:start]] [[newns:page]] [[newns:missing]]\n{{newns:oldnsimage.png}} {{newns:oldnsimage_missing.png}} {{oldnsimage_missing.png}}",rawWiki('start'));
416 $this->assertFalse($plan->inProgress());
422 $this->assertSame(1, $plan->nextStep(), 'pages');
423 $this->assertSame(1, $plan->nextStep(), 'namespace');
424 $this->assertSame(0, $plan->nextStep(), 'done');
426 $this->assertFileExists(wikiFN('newns:start'));
427 $this->assertFileExists($newfilepath);
428 $this->assertFileNotExists(wikiFN('subns:start'));
429 $this->assertFileNotExists($oldfilepath);
431 $this->assertSame($subscription,file_get_contents($newfilepath));
459 $this->assertFalse($plan->inProgress());
465 $this->assertSame(1, $plan->nextStep(), 'pages');
466 $this->assertSame(1, $plan->nextStep(), 'namespace');
467 $this->assertSame(0, $plan->nextStep(), 'done');
469 $this->assertFileExists(wikiFN('newns:start'));
470 $this->assertFileExists($newfilepath);
471 $this->assertFileNotExists(wikiFN('subns:start'));
472 $this->assertFileNotExists($oldfilepath);
474 $this->assertSame($subscription,file_get_contents($newfilepath));