Ejemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->data = ['login' => 'testuser', 'type' => User::TYPE_USER, 'name' => 'Test user', 'password' => hash('sha256', 'user'), 'active' => false, 'age' => 22.5, 'created' => new MongoDate(), 'manager' => null];
     $this->cache = new \MongoObject\NullCache(null);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->admin = $this->mapper->findObjectByProp('User', 'login', 'admin');
     $this->data = ['login' => 'testuser', 'type' => User::TYPE_USER, 'name' => 'Test user', 'password' => hash('sha256', 'user'), 'active' => false, 'age' => 22.5, 'created' => new MongoDate(), 'manager' => null];
 }