/** * @AfterFeature @enableDKAN_Workflow */ public static function disableDKAN_Workflow(AfterFeatureScope $event) { if (!parent::shouldEnableModule("dkan_workflow")) { return; } // Enable 'open_data_federal_extras' module. module_disable(array('dkan_workflow', 'dkan_workflow_permissions', 'views_dkan_workflow_tree', 'workbench', 'workbench_email', 'workbench_moderation')); drupal_flush_all_caches(); }
/** * @Then The page status should be :type */ public function pageStatusShouldBe($type) { switch ($type) { case 'ok': $code = 200; break; case 'access denied': $code = 403; break; case 'not found': $code = 404; break; case 'error': $code = 500; break; } parent::assertCurrentPageCode($code); }
/** * @BeforeScenario */ public function gatherContexts(BeforeScenarioScope $scope) { parent::gatherContexts($scope); $environment = $scope->getEnvironment(); $this->pageContext = $environment->getContext('Drupal\\DKANExtension\\Context\\PageContext'); }