Example #1
0
 public function testAddFieldStringWithRecords()
 {
     $this->tdb->add("test", ["name" => "tim"]);
     $this->tdb->addField("test", ["email", "string", 50]);
     $expectedField = ["fName" => "email", "fType" => "string", "fLength" => 50];
     $fieldList = $this->tdb->getFieldList("test");
     $this->assertEquals(true, in_array($expectedField, $fieldList));
     $record = $this->tdb->get("test", 1);
     $this->assertEquals("", $record[0]["email"]);
 }