remove() public method

Removes a link from a link-set|list.
public remove ( array $updates, string $class, boolean $append = true ) : Remove
$updates array
$class string
$append boolean
return Remove
 /**
  * @depends testAddLink
  */
 public function testRemoveLink()
 {
     $query = new Query();
     $binding = $this->createHttpBinding();
     $postRid = $this->post_id . ':0';
     $commentRid = $this->comment_id . ':1';
     $records = $binding->command('SELECT FROM ' . $postRid)->getResult();
     $before = count($records[0]->comments);
     $query->remove(array('comments' => $commentRid), 'post')->where('@rid = ?', $postRid);
     $this->assertHttpStatus(200, $this->doQuery($query, $binding));
     $records = $binding->command('SELECT FROM ' . $postRid)->getResult();
     $after = count($records[0]->comments);
     $this->assertSame($after, $before - 1);
 }