Passed
Push — 1.11.x ( fc4f1e...153878 )
by Julito
12:47
created

GetCourseLpProgressTest::testCourseList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
require_once __DIR__.'/V2TestCase.php';
6
require_once __DIR__.'/../../../../vendor/autoload.php';
7
8
class GetCourseLpProgressTest extends V2TestCase
9
{
10
    public function action()
11
    {
12
        return 'course_lp_progress';
13
    }
14
15
    public function testCourseList()
16
    {
17
        $result = $this->dataArray();
18
        var_dump($result);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($result) looks like debug code. Are you sure you do not want to remove it?
Loading history...
19
        $this->assertIsArray($result);
20
21
        //$result = $this->dataArray();
22
23
        //$this->assertIsObject($result);
24
        //$this->assertObjectHasAttribute('courses', $result);
25
26
        //$this->assertSame(1, count($urls));
27
28
        // expect the web service to return false
29
        //$this->assertFalse($this->boolean(['loginname' => $loginName]));
30
    }
31
}
32