assertNodesExist example

$this->assertTrue($this->assertSession()->optionExists('Content: Type', 'All')->isSelected());
    $arguments = [
      'All' => ['article', 'page'],
      'article' => ['article'],
      'page' => ['page'],
    ];
    foreach ($arguments as $argument => $bundles) {
      $element->find('css', 'select')->selectOption($argument);
      $element->findButton('Apply')->click();
      $this->assertCacheContext('url');
      $this->assertTrue($this->assertSession()->optionExists('Content: Type', $argument)->isSelected());
      $this->assertNodesExist($bundles);
    }
    $element->findButton('Reset')->click();
    $this->assertNodesExist($arguments['All']);
  }

  /** * Data provider for testing different types of displays. * * @return array * Array of display names to test. */
  
Home | Imprint | This part of the site doesn't use cookies.