'nid' => 2
],
['nid' => 3
],
['nid' => 4
],
['nid' => 5
],
['nid' => 6
],
];
$this->
executeView($this->view
);
$this->
assertIdenticalResultsetHelper($this->view,
$expected,
['nid' => 'nid'
], 'assertIdentical'
);
// Set filter to search on top-level term, with depth 0.
$expected =
[['nid' => 4
]];
$this->
assertTermWithDepthResult($expected,
$this->terms
[0
]->
id(), 0
);
// Top-level term, depth 1.
$expected =
[['nid' => 4
]];
$this->
assertTermWithDepthResult($expected,
$this->terms
[0
]->
id(), 1
);
// Top-level term, depth 2.
$expected =
[['nid' => 4
],
['nid' => 5
]];
$this->
assertTermWithDepthResult($expected,
$this->terms
[0
]->
id(), 2
);
// Top-level term, depth 9.
$expected =
[['nid' => 4
],
['nid' => 5
],
['nid' => 6
]];