Exemplo n.º 1
0
 /**
  * @covers wishlist\classes\BaseApi::userUpdate
  */
 public function testUserUpdate()
 {
     $_POST['description'] = "test desc";
     $_POST['user_birthday'] = 112341234;
     $_POST['user_id'] = $GLOBALS['userId'];
     $_POST['user_name'] = "test_name";
     $result = $this->object->userUpdate();
     $this->assertNotEmpty($result);
     $this->assertInternalType('string', $result);
     $this->assertRegExp('/Обновлено/', $result);
 }