SilverStripe\CMS\Tests\Tasks\RemoveOrphanedPagesTaskTest

<h2>Fixture tree</h2> <code> parent1_published child1_1_published grandchild1_1_1 grandchild1_1_2_published grandchild1_1_3_orphaned grandchild1_1_4_orphaned_published child1_2_published child1_3_orphaned child1_4_orphaned_published parent2 child2_1_published_orphaned // is orphaned because parent is not published </code>

<h2>Cleaned up tree</h2>
<code>
parent1_published
child1_1_published
grandchild1_1_1
grandchild1_1_2_published
child2_1_published_orphaned
parent2
</code>

Synopsis

class RemoveOrphanedPagesTaskTest extends FunctionalTest {
  • // members
  • protected static string $fixture_file = 'RemoveOrphanedPagesTaskTest.yml';
  • protected static boolean $use_draft_site = false;
}

Hierarchy

Extends

  • SilverStripe\Dev\FunctionalTest

Members

protected

  • $fixture_file
  • $use_draft_site

Methods