Пример #1
0
 /**
  * A basic functional test example.
  *
  * @return void
  * @group prueba
  */
 public function testOwner()
 {
     $own = new Owner();
     $own->setEmail('*****@*****.**');
     $own->setAdmin(false);
     $own->setPassword('123456');
     $own->setName('Owner');
     $own->setId(1);
     $own->setOwner(true);
     $own->setPhone('654321987');
     $own->setSurname('Apellido');
     $this->assertEquals('*****@*****.**', $own->getEmail());
     $this->assertEquals(false, $own->getAdmin());
     $this->assertEquals('123456', $own->getPassword());
     $this->assertEquals('Owner', $own->getName());
     $this->assertEquals(1, $own->getId());
     $this->assertEquals(true, $own->getOwner());
     $this->assertEquals('654321987', $own->getPhone());
     $this->assertEquals('Apellido', $own->getSurname());
 }