FOSSology  4.4.0
Open Source License Compliance by Open Source Software
uploadSrvDirTest.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2008 Hewlett-Packard Development Company, L.P.
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
16 require_once ('../../../tests/fossologyTestCase.php');
17 require_once ('../../../tests/TestEnvironment.php');
18 
19 global $URL;
20 
22 
23  public $mybrowser;
24 
25  protected function setUp() {
26  $this->Login();
27  $this->CreateFolder(1, 'SrvUploads', 'Folder for upload from server tests');
28  }
29 
30  public function testUploadSrvDir() {
31 
32  global $URL;
33 
34  $page = $this->mybrowser->get($URL);
35 
36  $Dir = '/home/fosstester/licenses/Tdir';
37  $Dirdescription = "Directory of licenses";
38 
39  $this->uploadServer('SrvUploads', $Dir, $Dirdescription, null, 'all');
40  }
41 }
uploadServer($parentFolder, $uploadPath, $description=null, $uploadName=null, $agents=null)
Login($User=NULL, $Password=NULL)