forked from Islandora/islandora_solution_pack_book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
islandora_book.test
43 lines (38 loc) · 1.12 KB
/
islandora_book.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
module_load_include('inc', 'fedora_repository', 'fedora_repository.test');
/**
* @file
* All tests relating to Islandora's Book Solution Pack.
*/
class BookSolutionPackTestCase extends SolutionPackTestCase {
/**
* Returns properties that are displayed in the test selection form.
*
* @return array - An associative array of info used to populate the test selection form
*/
public static function getInfo() {
return array(
'name' => 'Islandora Book Solution Pack Test Case',
'description' => "Functional tests for the Islandora Book Solution Pack.",
'group' => 'Solution Packs',
);
}
/**
* Overridden to provide the short form name of the module being tested.
*
* @return string - 'islandora_book'
*/
protected function getModuleName() {
return 'islandora_book';
}
/**
* Adds book solution pack permissions to the list of parent permissions.
*/
protected function getUserPermissions() {
$out = parent::getUserPermissions();
$out[] = 'delete pages';
$out[] = 'manage book object';
$out[] = 'manage page object';
return $out;
}
}