public function assertViewDisplaysExist(TableNode $expected) {
    $displays_info = [];
    foreach ($this->getViews() as $view) {
      /** @var array $display */
      foreach ($view->get('display') as $display) {
        $definition = $this->viewsDisplayManager
          ->getDefinition($display['display_plugin']);
        $displays_info[] = [
          $view->label(),
          $display['display_title'],
          $display['id'],
          (string) $definition['title'],
        ];
      }
    }
    $actual = new TableNode($displays_info);

    (new TableEqualityAssertion($expected, $actual))
      ->expectHeader([
        'View',
        'Title',
        'Machine name',
        'Display plugin',
      ])
      ->ignoreRowOrder()
      ->setMissingRowsLabel(self::missingRowsLabelFor('views'))
      ->setUnexpectedRowsLabel(self::unexpectedRowsLabelFor('views'))
      ->assert();
  }
public function assertViewDisplaysExist(TableNode $expected) {
    $displays_info = [];
    foreach ($this->getViews() as $view) {
      /** @var array $display */
      foreach ($view->get('display') as $display) {
        $definition = $this->viewsDisplayManager
          ->getDefinition($display['display_plugin']);
        $displays_info[] = [
          $view->label(),
          $display['display_title'],
          $display['id'],
          (string) $definition['title'],
        ];
      }
    }
    $actual = new TableNode($displays_info);

    (new TableEqualityAssertion($expected, $actual))
      ->expectHeader([
        'View',
        'Title',
        'Machine name',
        'Display plugin',
      ])
      ->ignoreRowOrder()
      ->setMissingRowsLabel(self::missingRowsLabelFor('views'))
      ->setUnexpectedRowsLabel(self::unexpectedRowsLabelFor('views'))
      ->assert();
  }
public function assertViewDisplaysExist ( TableNode $ expected ) { $ displays_info = [ ] ; foreach ( $ this -> getViews ( ) as $ view ) { /** @var array $display */ foreach ( $ view -> get ( 'display' ) as $ display ) { $ definition = $ this -> viewsDisplayManager -> getDefinition ( $ display [ 'display_plugin' ] ) ; $ displays_info [ ] = [ $ view -> label ( ) , $ display [ 'display_title' ] , $ display [ 'id' ] , ( string ) $ definition [ 'title' ] , ] ; } } $ actual = new TableNode ( $ displays_info ) ; ( new TableEqualityAssertion ( $ expected , $ actual ) ) -> expectHeader ( [ 'View' , 'Title' , 'Machine name' , 'Display plugin' , ] ) -> ignoreRowOrder ( ) -> setMissingRowsLabel ( self :: missingRowsLabelFor ( 'views' ) ) -> setUnexpectedRowsLabel ( self :: unexpectedRowsLabelFor ( 'views' ) ) -> assert ( ) ; }
Asserts the configuration of views displays.

@Then exactly the following views displays should exist

@throws \Exception
Asserts the configuration of views displays .