protected function ThunderJavascriptTestBase::setModerationState in Thunder 6.0.x
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setModerationState()
- 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setModerationState()
- 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setModerationState()
- 8.4 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setModerationState()
- 6.2.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setModerationState()
- 6.1.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setModerationState()
Set moderation state.
Parameters
string $state: State id.
4 calls to ThunderJavascriptTestBase::setModerationState()
- AccessUnpublishedTest::testAccessUnpublished in tests/
src/ FunctionalJavascript/ Integration/ AccessUnpublishedTest.php - Testing integration of "access_unpublished" module.
- ArticleCreationTest::testModerationWorkflow in tests/
src/ FunctionalJavascript/ ArticleCreationTest.php - Tests draft creation and that reverting to the default revision works.
- ChannelsTagsTest::testChannelsCreation in tests/
src/ FunctionalJavascript/ ChannelsTagsTest.php - Test channel creation, tagging of articles and channel page with articles.
- MetaInformationTest::testSiteMap in tests/
src/ FunctionalJavascript/ MetaInformationTest.php - Test Site Map for Article.
File
- tests/
src/ FunctionalJavascript/ ThunderJavascriptTestBase.php, line 423
Class
- ThunderJavascriptTestBase
- Base class for Thunder Javascript functional tests.
Namespace
Drupal\Tests\thunder\FunctionalJavascriptCode
protected function setModerationState($state) {
$page = $this
->getSession()
->getPage();
$page
->find('xpath', '//*[@id="edit-moderation-state-0"]')
->selectOption($state);
}