FOSSology  4.4.0
Open Source License Compliance by Open Source Software
JobTest.php
Go to the documentation of this file.
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2020 Siemens AG
4  Author: Gaurav Mishra <mishra.gaurav@siemens.com>
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
14 
16 
21 class JobTest extends \PHPUnit\Framework\TestCase
22 {
27  public function testDataFormat()
28  {
29  $expectedStatus = [
30  'id' => 22,
31  'name' => 'ojo',
32  'queueDate' => '01-01-2020',
33  'uploadId' => 4,
34  'userId' => 2,
35  'groupId' => 2,
36  'eta' => 3,
37  'status' => 'Processing'
38  ];
39 
40  $actualJob = new Job(22, 'ojo', '01-01-2020', 4, 2, 2, 3, 'Processing');
41 
42  $this->assertEquals($expectedStatus, $actualJob->getArray());
43  }
44 }