protected function makeExternalModificationToModel(BaseModel $model, $offset) { usleep(2); $directory = new FooDirectory($this->getMongoDB()); $directory->update($model, ['badMod' => $offset + 1, 'serial' => SerialUtil::newSerial()]); usleep(2); }
public function testSerializeJSON() { $dir = new FooDirectory($this->getMongoDB()); $model = $dir->create(['baz' => 'one']); PHPUnit::assertContains('"baz":"one"', json_encode($model)); }