summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-03 10:07:34 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-03 10:10:10 +0200
commit08d9474aaccd67c6e8a19abaf1d5ff6296063215 (patch)
tree20c515b2a6b5d170f64966d61670dd42a2891b82 /tests
parent357a8f70daf2c38eede45717fd9a24534af1ded5 (diff)
require admin account for executing cron routes
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/external/FeedAPITest.php4
-rw-r--r--tests/unit/external/NewsAPITest.php3
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/external/FeedAPITest.php b/tests/unit/external/FeedAPITest.php
index 6b133610e..ee9e6b60a 100644
--- a/tests/unit/external/FeedAPITest.php
+++ b/tests/unit/external/FeedAPITest.php
@@ -116,7 +116,8 @@ class FeedAPITest extends ControllerTestUtility {
public function testGetAllFromUsersAnnotations(){
- $this->assertDefaultAnnotations('getAllFromAllUsers');
+ $annotations = array('Ajax', 'CSRFExemption', 'API');
+ $this->assertAnnotations($this->feedAPI, 'getAllFromAllUsers', $annotations);
}
@@ -124,6 +125,7 @@ class FeedAPITest extends ControllerTestUtility {
$this->assertDefaultAnnotations('update');
}
+
public function testGetAll() {
$feeds = array(
new Feed()
diff --git a/tests/unit/external/NewsAPITest.php b/tests/unit/external/NewsAPITest.php
index b5cd808e3..9396e4f05 100644
--- a/tests/unit/external/NewsAPITest.php
+++ b/tests/unit/external/NewsAPITest.php
@@ -66,7 +66,8 @@ class NewsAPITest extends ControllerTestUtility {
}
public function testCleanUpAnnotations(){
- $this->assertDefaultAnnotations('cleanUp');
+ $annotations = array('Ajax', 'CSRFExemption', 'API');
+ $this->assertAnnotations($this->newsAPI, 'cleanUp', $annotations);
}
public function testGetVersion(){