protected function TestPageManagerConfiguration::savedInActiveStore in Configuration Management 7.2
Return TRUE if all the configurations defined in configToImport were saved into the active store.
Overrides ConfigurationHandlerBaseTestCase::savedInActiveStore
File
- tests/
handlers/ TestPageManagerConfiguration.test, line 110 - Tests for Configuration Management: Page manager components and dependencies.
Class
- TestPageManagerConfiguration
- @file Tests for Configuration Management: Page manager components and dependencies.
Code
protected function savedInActiveStore() {
$view_exists = views_get_view('test');
$result = $this
->assertTrue(!empty($view_exists->name), "The view was saved in the ActiveStore.");
$web_user = $this
->drupalCreateUser(array(
'use page manager',
));
$this
->drupalLogin($web_user);
$this
->drupalGet('admin/structure/pages');
$result &= $this
->assertRaw('Configuration Test Page', 'Page Manager Page was created correctly.');
return $result;
}