1 | <?php |
||
3 | class DMSSiteTreeExtensionTest extends SapphireTest |
||
4 | { |
||
5 | protected static $fixture_file = 'dms/tests/dmstest.yml'; |
||
6 | |||
7 | protected $requiredExtensions = array( |
||
8 | 'SiteTree' => array('DMSSiteTreeExtension') |
||
9 | ); |
||
10 | |||
11 | /** |
||
12 | * Ensure that setting the configuration property "documents_enabled" to false for a page type will prevent the |
||
13 | * CMS fields from being modified. |
||
14 | * |
||
15 | * Also ensures that a correctly named Document Sets GridField is added to the fields in the right place. |
||
16 | * |
||
17 | * Note: the (1) is the number of sets defined for this SiteTree in the fixture |
||
18 | * |
||
19 | * @dataProvider documentSetEnabledConfigProvider |
||
20 | */ |
||
21 | public function testCanDisableDocumentSetsTab($configSetting, $assertionMethod) |
||
27 | |||
28 | /** |
||
29 | * @return array[] |
||
30 | */ |
||
31 | public function documentSetEnabledConfigProvider() |
||
38 | |||
39 | /** |
||
40 | * Tests for the Document Sets GridField. |
||
41 | * |
||
42 | * Note: the (1) is the number of sets defined for this SiteTree in the fixture |
||
43 | */ |
||
44 | public function testDocumentSetsGridFieldIsCorrectlyConfigured() |
||
53 | |||
54 | /** |
||
55 | * Ensure that a page title can be retrieved with the number of related documents it has (across all document sets). |
||
56 | * |
||
57 | * See fixtures for relationships that define this result. |
||
58 | */ |
||
59 | public function testGetTitleWithNumberOfDocuments() |
||
64 | |||
65 | /** |
||
66 | * Ensure that documents marked as "embargo until publish" are unmarked as such when a page containing them is |
||
67 | * published |
||
68 | */ |
||
69 | public function testOnBeforePublishUnEmbargoesDocumentsSetAsEmbargoedUntilPublish() |
||
85 | |||
86 | /** |
||
87 | * Ensure that document sets that are assigned to pages to not show up in "link existing" autocomplete |
||
88 | * search results |
||
89 | */ |
||
90 | public function testGetRelatedDocumentsForAutocompleter() |
||
105 | } |
||
106 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.