Línea 37... |
Línea 37... |
37 |
* @dataProvider get_content_nodes_provider
|
37 |
* @dataProvider get_content_nodes_provider
|
38 |
* @param array $shareddrives The array containing the existing shared drives
|
38 |
* @param array $shareddrives The array containing the existing shared drives
|
39 |
* @param bool $sortcontent Whether the contents should be sorted in alphabetical order
|
39 |
* @param bool $sortcontent Whether the contents should be sorted in alphabetical order
|
40 |
* @param array $expected The expected array which contains the generated repository content nodes
|
40 |
* @param array $expected The expected array which contains the generated repository content nodes
|
41 |
*/
|
41 |
*/
|
42 |
public function test_get_content_nodes(array $shareddrives, bool $sortcontent, array $expected) {
|
42 |
public function test_get_content_nodes(array $shareddrives, bool $sortcontent, array $expected): void {
|
43 |
// Mock the service object.
|
43 |
// Mock the service object.
|
44 |
$servicemock = $this->createMock(\repository_googledocs\rest::class);
|
44 |
$servicemock = $this->createMock(\repository_googledocs\rest::class);
|
Línea 45... |
Línea 45... |
45 |
|
45 |
|
46 |
// Assert that the call() method is being called only once with the given arguments to fetch the existing
|
46 |
// Assert that the call() method is being called only once with the given arguments to fetch the existing
|