You are here

protected function DbHelper::doa6f0dfb0 in MongoDB 8

db_select() in NodeRevisionsTest::testRevisions()

File

drivers/lib/Drupal/Driver/Database/mongodb/DbHelper.php, line 84
Contains \Drupal\Driver\Database\mongodb\TestQuery.

Class

DbHelper

Namespace

Drupal\Driver\Database\mongodb

Code

protected function doa6f0dfb0() {
  $nid = $this->calls['condition'][0][1];
  if ($result = $this->mongo
    ->get('entity.node')
    ->findOne([
    '_id' => $nid,
  ])) {
    return [
      $result['values'][0]['vid'][0]['value'],
    ];
  }
  $test_id = substr(drupal_valid_test_ua(), 10);
  TestBase::insertAssert($test_id, 'Drupal\\node\\Tests\\NodeRevisionsTest', FALSE);
}