@@ 24-37 (lines=14) @@ | ||
21 | "SiteConfig" => array("ContentReviewDefaultSettings"), |
|
22 | ); |
|
23 | ||
24 | public function testReviewedThrowsExceptionWithNoRecordID() |
|
25 | { |
|
26 | $this->setExpectedException("SS_HTTPResponse_Exception"); |
|
27 | ||
28 | /** @var CMSPageEditController|ContentReviewCMSExtension $controller */ |
|
29 | $controller = new CMSPageEditController(); |
|
30 | ||
31 | $dummyForm = new CMSForm($controller, "EditForm", new FieldList(), new FieldList()); |
|
32 | ||
33 | $controller->savereview(array( |
|
34 | "ID" => null, |
|
35 | "Message" => null, |
|
36 | ), $dummyForm); |
|
37 | } |
|
38 | ||
39 | public function testReviewedThrowsExceptionWithWrongRecordID() |
|
40 | { |
|
@@ 39-52 (lines=14) @@ | ||
36 | ), $dummyForm); |
|
37 | } |
|
38 | ||
39 | public function testReviewedThrowsExceptionWithWrongRecordID() |
|
40 | { |
|
41 | $this->setExpectedException("SS_HTTPResponse_Exception"); |
|
42 | ||
43 | /** @var CMSPageEditController|ContentReviewCMSExtension $controller */ |
|
44 | $controller = new CMSPageEditController(); |
|
45 | ||
46 | $dummyForm = new CMSForm($controller, "EditForm", new FieldList(), new FieldList()); |
|
47 | ||
48 | $controller->savereview(array( |
|
49 | "ID" => "FAIL", |
|
50 | "Message" => null, |
|
51 | ), $dummyForm); |
|
52 | } |
|
53 | ||
54 | public function testReviewedWithAuthor() |
|
55 | { |