You are here

protected function ConditionTest::randomData in Apigee Edge 8

Returns a random data row.

Return value

array Random data row.

2 calls to ConditionTest::randomData()
ConditionTest::testAnd in tests/src/Unit/ConditionTest.php
Tests the "AND" conjunction.
ConditionTest::testComplex in tests/src/Unit/ConditionTest.php
Tests a complex condition.

File

tests/src/Unit/ConditionTest.php, line 175

Class

ConditionTest
Entity query condition tests.

Namespace

Drupal\Tests\apigee_edge\Unit

Code

protected function randomData() : array {
  return $this->entityData[mt_rand(0, count($this->entityData) - 1)];
}