RecipeWebTestBase.php in Recipe 7
File
src/Tests/RecipeWebTestBase.php
View source
<?php
namespace Drupal\recipe\Tests;
abstract class RecipeWebTestBase extends \DrupalWebTestCase {
protected $adminUser;
protected $unitList;
public function setUp() {
parent::setUp(array(
'recipe',
'recipe_plaintext',
'recipe_html',
'recipe_recipeML',
'recipe_mastercook4',
'recipe_test',
));
$this->adminUser = $this
->drupalCreateUser(array(
'create recipe content',
'edit any recipe content',
'import recipes',
'export recipes',
'administer site configuration',
'administer blocks',
));
$this
->drupalLogin($this->adminUser);
$this->unitList = recipe_get_units();
}
}
Classes
Name |
Description |
RecipeWebTestBase |
Provides a base class for testing the functionality of the Recipe module. |