public function testCreate()
 {
     $data = ['foo' => 'bar'];
     $result = $this->mongoListener->create($data);
     $this->assertTrue(isset($result['_id']));
     static::$lastId = $result['_id'];
 }
 /**
  * method that test if the system inserted a record
  */
 public function testInsert()
 {
     $user = new User();
     $user->load(['name' => 'Eric']);
     $saved = $user->insert();
     static::$lastId = $user->id;
     $this->assertTrue($saved);
 }
 public static function reset()
 {
     static::$strings = array();
     static::$lastId = 0;
 }