public function IntegrationTest::createSampleContent in Acquia Content Hub 8
Create some basic sample content so that we can later verify if the CDF.
1 call to IntegrationTest::createSampleContent()
- IntegrationTest::testFramework in tests/src/ Functional/ IntegrationTest.php 
- Tests various operations via the Acquia Content Hub admin UI.
File
- tests/src/ Functional/ IntegrationTest.php, line 334 
Class
- IntegrationTest
- Tests the overall functionality of the Acquia Content Hub module.
Namespace
Drupal\Tests\acquia_contenthub\FunctionalCode
public function createSampleContent() {
  // Add one article and a page.
  $this->article = $this
    ->drupalCreateNode([
    'type' => 'article',
    'test_field_01' => [
      'value' => 1,
    ],
  ]);
  $this->page = $this
    ->drupalCreateNode([
    'type' => 'page',
  ]);
  $this->unpublishedArticle = $this
    ->drupalCreateNode([
    'type' => 'article',
    'status' => FALSE,
  ]);
}