Example #1
0
 public function testDeleteRow()
 {
     $child = $this->childrenTable->getRow(1);
     $this->assertNotNull($child);
     $beforeCount = $this->childrenTable->getRows()->count();
     $this->childrenTable->deleteRow(1);
     $afterCount = $this->childrenTable->getRows()->count();
     $this->assertEquals($beforeCount - $afterCount, 1);
     $child = $this->childrenTable->getRow(1);
     $this->assertNull($child);
 }