You are here

public function RealisticDummyContentDatabaseTestCase::testRecipe in Realistic Dummy Content 7.2

Same name and namespace in other branches
  1. 8.2 api/drupal7-simpletests/RealisticDummyContentDatabaseTestCase.test \RealisticDummyContentDatabaseTestCase::testRecipe()

File

api/drupal7-simpletests/RealisticDummyContentDatabaseTestCase.test, line 182
Drupal 7 tests.

Class

RealisticDummyContentDatabaseTestCase
The test case

Code

public function testRecipe() {
  $this
    ->assertTrue(module_load_include('inc', 'realistic_dummy_content_api', 'realistic_dummy_content_api.drush'), 'drush file exists');
  realistic_dummy_content_api_apply_recipe(new RealisticDummyContentDebugLog());
  $page = node_load(4);
  $article = node_load(14);
  $this
    ->assertTrue(isset($page->type) && $page->type == 'page', 'Node 4 is a page, as specified in the recipe.');
  $this
    ->assertTrue(isset($article->type) && $article->type == 'article', 'Node 14 is an article, as specified in the recipe.');
}