private function tryToUseSubpageHierarchyFallback($subject, $parents)
 {
     if ($parents !== array() || !$this->bySubpageLinksFinder->canUseSubpageDiscoveryForFallback()) {
         return $parents;
     }
     $this->bySubpageLinksFinder->tryToFindLinksFor($subject);
     return $this->bySubpageLinksFinder->getParents();
 }
 public function testDisabledFinder()
 {
     $instance = new BySubpageLinksFinder();
     $instance->setSubpageDiscoverySupportState(false);
     $this->assertFalse($instance->canUseSubpageDiscoveryForFallback());
 }