|
36 | 36 |
|
37 | 37 | test('getParams returns default values when no params provided', function () { |
38 | 38 |
|
39 | | - $contacts = new Contacts(); |
| 39 | + $contacts = new Contacts; |
40 | 40 | $reflection = new ReflectionMethod(Contacts::class, 'getParams'); |
41 | 41 | $response = $reflection->invoke($contacts, [], 25); |
42 | 42 |
|
|
51 | 51 | }); |
52 | 52 |
|
53 | 53 | test('getParams includes custom top parameter', function () { |
54 | | - $contacts = new Contacts(); |
| 54 | + $contacts = new Contacts; |
55 | 55 | $reflection = new ReflectionMethod(Contacts::class, 'getParams'); |
56 | 56 | $response = $reflection->invoke($contacts, ['$top' => 10], 25); |
57 | 57 |
|
|
65 | 65 | }); |
66 | 66 |
|
67 | 67 | test('getParams includes custom skip parameter', function () { |
68 | | - $contacts = new Contacts(); |
| 68 | + $contacts = new Contacts; |
69 | 69 | $reflection = new ReflectionMethod(Contacts::class, 'getParams'); |
70 | 70 | $response = $reflection->invoke($contacts, ['$skip' => 15], 25); |
71 | 71 |
|
|
79 | 79 | }); |
80 | 80 |
|
81 | 81 | test('getParams forces count to be true when missing', function () { |
82 | | - $contacts = new Contacts(); |
| 82 | + $contacts = new Contacts; |
83 | 83 | $reflection = new ReflectionMethod(Contacts::class, 'getParams'); |
84 | 84 | $response = $reflection->invoke($contacts, ['$top' => 10, '$skip' => 5], 25); |
85 | 85 |
|
|
0 commit comments