/** * @depends testGet * * @return void */ public function testUnsetValue() { $value = 'all-p2p'; $this->util->setMenu('/ip/firewall/filter'); $id = $this->util->add(array('comment' => 'API TESTING', 'p2p' => $value, 'action' => 'passthrough', 'chain' => 'forward')); $targetBefore = $this->util->get($id, 'p2p'); $this->util->unsetValue($id, 'p2p'); $targetAfter = $this->util->get($id, 'p2p'); $this->util->remove($id); $this->assertSame($value, $targetBefore); $this->assertNull($targetAfter); }