public function testFakeGateway()
 {
     $the_user_id = 1;
     $gateway = fake_gateway($the_user_id);
     $this->assertEquals($gateway->owner_id, $the_user_id);
     $this->assertNotNull($gateway->name);
     $this->assertNotNull($gateway->serial);
     $this->assertNotNull($gateway->mac);
     $this->assertNotNull($gateway->ip);
 }
Ejemplo n.º 2
0
 public function addFakeGateway($id)
 {
     $gid = $this->CI->gateway_model->insert(fake_gateway($this->the_user->id, null, $id));
     $this->the_gateway = $this->CI->gateway_model->load($gid);
     return $this->the_gateway;
 }