public function IngredientSettingsTest::setUp in Recipe 7.2
Overrides RecipeWebTestBase::setUp
File
- src/
Tests/ IngredientSettingsTest.php, line 24
Class
- IngredientSettingsTest
- Tests the functionality of the ingredient field settings.
Namespace
Drupal\recipe\TestsCode
public function setUp() {
// Enable modules required for testing.
parent::setUp(array(
'recipe',
));
// Create a new content type for testing.
$this
->drupalCreateContentType(array(
'type' => 'test_bundle',
));
// Create and log in the admin user with Recipe content permissions.
$this->adminUser = $this
->drupalCreateUser(array(
'create test_bundle content',
'administer site configuration',
));
$this
->drupalLogin($this->adminUser);
}