Exemplo n.º 1
0
 public function testNodeIncFindAttempt()
 {
     $db = new NodesNewDb();
     $db->nodeAddFind('cafed00d-2131-4159-8e11-0b4dbadb1738');
     $db->nodeAddFind('cafed00d-2131-4159-8e11-0b4dbadb1739');
     $this->assertEquals(0, $db->data['nodes'][1]['findAttempts']);
     $db->nodeIncFindAttempt(1);
     $this->assertEquals(1, $db->data['nodes'][1]['findAttempts']);
     $db->nodeIncFindAttempt(1);
     $this->assertEquals(2, $db->data['nodes'][1]['findAttempts']);
 }