◆ testCreatingObjectAndReceiveData()
ilCertificateMigrationInformationObjectTest::testCreatingObjectAndReceiveData |
( |
| ) |
|
Definition at line 9 of file ilCertificateMigrationInformationObjectTest.php.
16 'processed_items' => 3,
17 'migrated_items' => 5,
19 'state' =>
'finished',
20 'started_ts' => 123456789,
21 'finished_ts' => 987654321
26 $this->assertEquals(100, $informationObject->getId());
27 $this->assertEquals(200, $informationObject->getUserId());
28 $this->assertEquals(
true, $informationObject->getLock());
29 $this->assertEquals(4, $informationObject->getFoundItems());
30 $this->assertEquals(3, $informationObject->getProgressedItems());
31 $this->assertEquals(
'finished', $informationObject->getState());
32 $this->assertEquals(50, $informationObject->getProgress());
33 $this->assertEquals(123456789, $informationObject->getStartingTime());
34 $this->assertEquals(987654321, $informationObject->getFinishedTime());
35 $this->assertEquals((987654321 - 123456789), $informationObject->getProcessingTime());
◆ testCreatingObjectAsArray()
ilCertificateMigrationInformationObjectTest::testCreatingObjectAsArray |
( |
| ) |
|
Definition at line 38 of file ilCertificateMigrationInformationObjectTest.php.
45 'processed_items' => 3,
46 'migrated_items' => 5,
48 'state' =>
'finished',
49 'started_ts' => 123456789,
50 'finished_ts' => 987654321
54 $dataArray = $informationObject->getDataAsArray();
56 $this->assertEquals(array(
61 'processed_items' => 3,
63 'state' =>
'finished',
64 'started_ts' => 123456789,
65 'finished_ts' => 987654321
The documentation for this class was generated from the following file: