protected function MiniPagerTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Functional/Plugin/MiniPagerTest.php \Drupal\Tests\views\Functional\Plugin\MiniPagerTest::setUp()
Overrides ViewTestBase::setUp
File
- core/
modules/ views/ tests/ src/ Functional/ Plugin/ MiniPagerTest.php, line 42
Class
- MiniPagerTest
- Tests the mini pager plugin.
Namespace
Drupal\Tests\views\Functional\PluginCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$this
->drupalCreateContentType([
'type' => 'page',
]);
// Create a bunch of test nodes.
for ($i = 0; $i < 20; $i++) {
$this->nodes[] = $this
->drupalCreateNode();
}
}