Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/Controller/Component/ApiPaginationComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 0 additions & 12 deletions tests/TestCase/Controller/Component/ApiPaginationComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down