You are here

protected function UniqueFieldAjaxBase::itCanUpdateField in Unique field ajax 2.x

An Alias method for save field, requiring an nid.

Parameters

array $edit: Edit data.

int $nid: Node id.

bool $debug: Adds debug information.

Return value

int Saved/updated node id.

Throws

\Behat\Mink\Exception\ResponseTextException

2 calls to UniqueFieldAjaxBase::itCanUpdateField()
UniqueFieldAjaxTest::testUniqueFieldAllowsSavingSameField in tests/src/Functional/UniqueFieldAjaxTest.php
Test if field unique is enabled you can still save the same node.
UniqueFieldAjaxTest::testUniqueTitleAllowsSavingSameField in tests/src/Functional/UniqueFieldAjaxTest.php
Test if title unique is enabled you can still save the same node.

File

tests/src/Functional/UniqueFieldAjaxBase.php, line 250

Class

UniqueFieldAjaxBase
The base testing class for unique_field_ajax.

Namespace

Drupal\Tests\unique_field_ajax\Functional

Code

protected function itCanUpdateField(array $edit, int $nid, bool $debug = FALSE) : int {
  return $this
    ->itCanSaveField($edit, $nid, $debug);
}