public function TransitionTest::testPublishInPast in Lightning Scheduler 8
File
- tests/
src/ FunctionalJavascript/ TransitionTest.php, line 60
Class
- TransitionTest
- @group lightning_scheduler
Namespace
Drupal\Tests\lightning_scheduler\FunctionalJavascriptCode
public function testPublishInPast() {
$assert_session = $this
->assertSession();
$this
->createTransition('Published', time() - 10);
$this
->getSession()
->getPage()
->pressButton('Save');
$this
->cronRun();
$this
->clickEditLink();
$assert_session
->pageTextContains('Current state Published');
$assert_session
->elementNotExists('css', '.scheduled-transition');
}