summaryrefslogtreecommitdiffstats
path: root/tests/unit/api/FeedAPITest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/api/FeedAPITest.php')
-rw-r--r--tests/unit/api/FeedAPITest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/api/FeedAPITest.php b/tests/unit/api/FeedAPITest.php
index 03dd762cb..935b5214b 100644
--- a/tests/unit/api/FeedAPITest.php
+++ b/tests/unit/api/FeedAPITest.php
@@ -84,8 +84,7 @@ class FeedAPITest extends ControllerTestUtility {
private function assertDefaultAnnotations($methodName){
- $annotations = array('IsAdminExemption', 'IsSubAdminExemption',
- 'Ajax', 'CSRFExemption', 'API');
+ $annotations = array('NoAdminRequired', 'NoCSRFRequired', 'API');
$this->assertAnnotations($this->feedAPI, $methodName, $annotations);
}
@@ -116,13 +115,13 @@ class FeedAPITest extends ControllerTestUtility {
public function testGetAllFromUsersAnnotations(){
- $annotations = array('Ajax', 'CSRFExemption', 'API');
+ $annotations = array('NoCSRFRequired', 'API');
$this->assertAnnotations($this->feedAPI, 'getAllFromAllUsers', $annotations);
}
public function testUpdateAnnotations(){
- $annotations = array('Ajax', 'CSRFExemption', 'API');
+ $annotations = array('NoCSRFRequired', 'API');
$this->assertAnnotations($this->feedAPI, 'update', $annotations);
}