public function testCollectionsFindById($car) { $id = $car->getId(); $this->assertInstanceOf('MongoDB\\BSON\\ObjectID', $id); $car = Cars::findById($id); $this->assertEquals('488 GTB', $car->model); $this->clearData(); }