diff options
-rw-r--r-- | controller/itemapicontroller.php | 2 | ||||
-rw-r--r-- | tests/unit/controller/ItemApiControllerTest.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/controller/itemapicontroller.php b/controller/itemapicontroller.php index ce3d915d7..3b0a5457d 100644 --- a/controller/itemapicontroller.php +++ b/controller/itemapicontroller.php @@ -93,7 +93,7 @@ class ItemApiController extends Controller { * @NoCSRFRequired * @API */ - public function getUpdated() { + public function updated() { $result = array( 'items' => array() ); diff --git a/tests/unit/controller/ItemApiControllerTest.php b/tests/unit/controller/ItemApiControllerTest.php index b0f42aae5..6a8c2a5cd 100644 --- a/tests/unit/controller/ItemApiControllerTest.php +++ b/tests/unit/controller/ItemApiControllerTest.php @@ -79,8 +79,8 @@ class ItemApiControllerTest extends ControllerTestUtility { } - public function testGetUpdatedAnnotations(){ - $this->assertDefaultAnnotations('getUpdated'); + public function testUpdatedAnnotations(){ + $this->assertDefaultAnnotations('updated'); } @@ -208,7 +208,7 @@ class ItemApiControllerTest extends ControllerTestUtility { } - public function testGetUpdated() { + public function testUpdated() { $items = array( new Item() ); @@ -237,7 +237,7 @@ class ItemApiControllerTest extends ControllerTestUtility { ) ->will($this->returnValue($items)); - $response = $this->itemAPI->getUpdated(); + $response = $this->itemAPI->updated(); $this->assertEquals(array( 'items' => array($items[0]->toAPI()) |