You are here

public function MockCollection::save in MongoDB 7

Always fail, as needed for issue #2974216.

Throws

\MongoException

File

mongodb_cache/src/Tests/CacheUnitTestCase.php, line 44

Class

MockCollection

Namespace

Drupal\mongodb_cache\Tests

Code

public function save() {
  throw new \MongoException($this->message);
}