/** * @param $id * @depends testGet */ public function testUpdate($id) { // Sleep for two seconds to make sure the serial is updated correctly sleep(2); /** * @type Records $recordObj */ $recordObj = $this->workflow->get($id); $serial = $recordObj->getDomain()->getSerial(); $recordObj->setContent('1.1.1.8'); $recordObj = $this->workflow->update($recordObj); $this->assertEquals('1.1.1.8', $recordObj->getContent()); $newSerial = $recordObj->getDomain()->getSerial(); $this->assertNotEquals($serial, $newSerial); return $id; }