diff --git a/src/Controller/Component/ApiPaginationComponent.php b/src/Controller/Component/ApiPaginationComponent.php index b181d38..136646c 100644 --- a/src/Controller/Component/ApiPaginationComponent.php +++ b/src/Controller/Component/ApiPaginationComponent.php @@ -29,16 +29,6 @@ class ApiPaginationComponent extends Component */ protected $pagingInfo = []; - /** - * {@inheritDoc} - * - * @return array - */ - public function implementedEvents() - { - return []; - } - /** * Injects the pagination info into the response if the current request is a * JSON or XML request with pagination. diff --git a/tests/TestCase/Controller/Component/ApiPaginationComponentTest.php b/tests/TestCase/Controller/Component/ApiPaginationComponentTest.php index fa0fd34..65c07db 100644 --- a/tests/TestCase/Controller/Component/ApiPaginationComponentTest.php +++ b/tests/TestCase/Controller/Component/ApiPaginationComponentTest.php @@ -40,18 +40,6 @@ public function tearDown() parent::tearDown(); } - /** - * Simple test to check if implementedEvents returns an empty array. - */ - public function testImplementedEvents() - { - $apiPaginationComponent = new ApiPaginationComponent($this->controller->components()); - $result = $apiPaginationComponent->implementedEvents(); - $expected = []; - - $this->assertSame($expected, $result); - } - /** * Test that a non API or paginated request returns null. *