You are here

protected function ContentEntityAutosaveFormTestBase::assertOriginalEntityTitleAsPageTitle in Autosave Form 8

Asserts that page title matches the original entity title.

2 calls to ContentEntityAutosaveFormTestBase::assertOriginalEntityTitleAsPageTitle()
ContentEntityAutosaveFormTestBase::assertCorrectlyRestoredEntityFormState in tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php
Tests the restored autosave state by the change ID.
ContentEntityAutosaveFormTestBase::doTestAutosaveFormExistingEntity in tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php
Tests the autosave support on entity forms.

File

tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php, line 550

Class

ContentEntityAutosaveFormTestBase
Base test class for testing autosave support for entity forms.

Namespace

Drupal\Tests\autosave_form\FunctionalJavascript\ContentEntity

Code

protected function assertOriginalEntityTitleAsPageTitle() {
  $current_title = $this
    ->getCurrentPageTitle();
  $this
    ->assertTrue(strpos($current_title, $this->originalEntityTitle) !== FALSE);
}