FOSSology  4.4.0
Open Source License Compliance by Open Source Software
createFldrDeleteIt.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2008 Hewlett-Packard Development Company, L.P.
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
17 require_once ('../../../tests/fossologyTestCase.php');
18 require_once ('../../../tests/TestEnvironment.php');
19 
20 global $URL;
21 
23 {
24  public $folder_name;
25  public $mybrowser;
26 
27  function setUp()
28  {
29  global $URL;
30  $this->Login();
31  $this->folder_name = 'CreateDeleteFolderTest';
32  }
33 
34  function testCreateDeleteFldr()
35  {
36  print "starting CreateDeleteFolderTest\n";
37  // create then remove 5 times....
38  for($i=0; $i<5; $i++) {
39  $this->createFolder(1,$this->folder_name,
40  'Folder created by CreateFolderTest as subfolder of Root Folder');
41  $this->deleteFolder($this->folder_name);
42  sleep(120); // give delete job some time to remove it...
43  }
44  }
45 }
createFolder($parent, $name, $description=null)
Login($User=NULL, $Password=NULL)
const char * folder_name
Definition: sqlstatements.h:54