134c134
< index 0000000..166a79a
---
> index 0000000..5dffb56
148c148
< index 0000000..b97a08b
---
> index 0000000..9ab4fe2
151c151
< @@ -0,0 +1,78 @@
---
> @@ -0,0 +1,73 @@
154,158d153
< +/**
< + * @file
< + * Contains Drupal\book\Plugin\views\argument_default\TopLevelBook.
< + */
< +
232c227
< index 0000000..e7e0579
---
> index 0000000..a26a19b
235c230
< @@ -0,0 +1,210 @@
---
> @@ -0,0 +1,168 @@
238,242d232
< +/**
< + * @file
< + * Contains \Drupal\book\Tests\Views\BookRelationshipTest.
< + */
< +
399,442c389,395
< +    $this->drupalGet('test-book/' . $nodes[0]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->drupalGet('test-book/' . $nodes[1]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->drupalGet('test-book/' . $nodes[2]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->assertLink($nodes[2]->label());
< +    $this->drupalGet('test-book/' . $nodes[3]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->assertLink($nodes[2]->label());
< +    $this->assertLink($nodes[3]->label());
< +    $this->drupalGet('test-book/' . $nodes[4]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->assertLink($nodes[2]->label());
< +    $this->assertLink($nodes[3]->label());
< +    $this->assertLink($nodes[4]->label());
< +    $this->drupalGet('test-book/' . $nodes[5]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->assertLink($nodes[2]->label());
< +    $this->assertLink($nodes[3]->label());
< +    $this->assertLink($nodes[4]->label());
< +    $this->assertLink($nodes[5]->label());
< +    $this->drupalGet('test-book/' . $nodes[6]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->assertLink($nodes[2]->label());
< +    $this->assertLink($nodes[3]->label());
< +    $this->assertLink($nodes[4]->label());
< +    $this->assertLink($nodes[5]->label());
< +    $this->assertLink($nodes[6]->label());
< +    $this->drupalGet('test-book/' . $nodes[7]->id());
< +    $this->assertLink($nodes[0]->label());
< +    $this->assertLink($nodes[1]->label());
< +    $this->assertLink($nodes[2]->label());
< +    $this->assertLink($nodes[3]->label());
< +    $this->assertLink($nodes[4]->label());
< +    $this->assertLink($nodes[5]->label());
< +    $this->assertLink($nodes[6]->label());
< +    $this->assertLink($nodes[7]->label());
---
> +    for ($i = 0; $i < 8; $i++) {
> +      $this->drupalGet('test-book/' . $nodes[$i]->id());
> +
> +      for ($j = 0; $j < $i; $j++) {
> +        $this->assertLink($nodes[$j]->label());
> +      }
> +    }
