diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/external/FeedAPITest.php | 4 | ||||
-rw-r--r-- | tests/unit/external/NewsAPITest.php | 3 |
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(){ |