Example #1
0
 /**
  * Insert testing data into the database
  *
  * @return none
  */
 function setUp()
 {
     parent::setUp();
     $md5String = md5("TestTestTest");
     $window = new WebDriverWindow($this->webDriver);
     $window->maximize();
     $this->DB->insert("help", array('helpID' => '999999', 'parentID' => '-1', 'hash' => $md5String, 'topic' => 'Test Topic', 'content' => 'This is a test content.', 'created' => '2013-04-05 00:00:00', 'updated' => 'NULL'));
 }
Example #2
0
 /**
  * Insert testing data into the database
  * author: Wang Shen
  *
  * @return none
  */
 function setUp()
 {
     parent::setUp();
     $window = new WebDriverWindow($this->webDriver);
     $window->maximize();
     $this->DB->insert("conflicts_resolved", array('ResolvedID' => '999999', 'UserID' => 'demo', 'ResolutionTimestamp' => '2015-11-03 16:21:49', 'User1' => 'Null', 'User2' => 'Null', 'TableName' => 'Test', 'ExtraKey1' => 'NULL', 'ExtraKey2' => 'NULL', 'FieldName' => 'TestTestTest', 'CommentId1' => '589569DCC000012291366553230', 'CommentId2' => 'DDE_589569DCC000012291366653254', 'OldValue1' => 'Mother', 'OldValue2' => 'Father', 'NewValue' => 'NULL', 'ConflictID' => 'NULL'));
     $this->DB->insert("conflicts_unresolved", array('TableName' => 'TestTestTest', 'ExtraKeyColumn' => 'Test', 'ExtraKey1' => 'Null', 'ExtraKey2' => 'Null', 'FieldName' => 'TestTestTest', 'CommentId1' => '963443000111271151398976899', 'Value1' => 'no', 'CommentId2' => 'DDE_963443000111271151398976899', 'Value2' => 'no'));
 }