You are here

public function UniqueFieldAjaxTest::testUniqueTitleAllowsSavingSameField in Unique field ajax 2.x

Test if title unique is enabled you can still save the same node.

Throws

\Drupal\Core\Entity\EntityStorageException

\Behat\Mink\Exception\ResponseTextException

File

tests/src/Functional/UniqueFieldAjaxTest.php, line 109

Class

UniqueFieldAjaxTest
Test the field permissions report page.

Namespace

Drupal\Tests\unique_field_ajax\Functional

Code

public function testUniqueTitleAllowsSavingSameField() {
  $this
    ->updateThirdPartyEntitySetting('unique', TRUE);
  $edit = $this
    ->createBasicUpdateData();
  $id = $this
    ->itCanSaveField($edit);
  $this
    ->itCanUpdateField($edit, $id);
  $this
    ->itCanUpdateField($edit, $id);
}