Skip to content

Commit

Permalink
Merge pull request #1 from styks1987/master
Browse files Browse the repository at this point in the history
remove implementedEvents function
  • Loading branch information
bcrowe committed May 18, 2016
2 parents ee9fe75 + 17499cb commit bb1a15c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
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

0 comments on commit bb1a15c

Please sign in to comment.