You are here

protected function EntityLegalTestBase::randomMachineName in Entity Legal 4.0.x

Same name and namespace in other branches
  1. 8.2 src/Tests/EntityLegalTestBase.php \Drupal\entity_legal\Tests\EntityLegalTestBase::randomMachineName()
  2. 3.0.x src/Tests/EntityLegalTestBase.php \Drupal\entity_legal\Tests\EntityLegalTestBase::randomMachineName()

Ensures generated names are lower case.

4 calls to EntityLegalTestBase::randomMachineName()
EntityLegalDocumentTest::testCreateForm in src/Tests/EntityLegalDocumentTest.php
Test the functionality of the create form.
EntityLegalDocumentTest::testEditForm in src/Tests/EntityLegalDocumentTest.php
Test the functionality of the edit form.
EntityLegalDocumentVersionTest::testCreateForm in src/Tests/EntityLegalDocumentVersionTest.php
Test the functionality of the create form.
EntityLegalDocumentVersionTest::testEditForm in src/Tests/EntityLegalDocumentVersionTest.php
Test the functionality of the edit form.

File

src/Tests/EntityLegalTestBase.php, line 55

Class

EntityLegalTestBase
Common Simpletest class for all legal tests.

Namespace

Drupal\entity_legal\Tests

Code

protected function randomMachineName($length = 8) {
  return strtolower(parent::randomMachineName($length));
}