Skip to content

Commit bb1a15c

Browse files
committed
Merge pull request #1 from styks1987/master
remove implementedEvents function
2 parents ee9fe75 + 17499cb commit bb1a15c

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/Controller/Component/ApiPaginationComponent.php

-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ class ApiPaginationComponent extends Component
2929
*/
3030
protected $pagingInfo = [];
3131

32-
/**
33-
* {@inheritDoc}
34-
*
35-
* @return array
36-
*/
37-
public function implementedEvents()
38-
{
39-
return [];
40-
}
41-
4232
/**
4333
* Injects the pagination info into the response if the current request is a
4434
* JSON or XML request with pagination.

tests/TestCase/Controller/Component/ApiPaginationComponentTest.php

-12
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ public function tearDown()
4040
parent::tearDown();
4141
}
4242

43-
/**
44-
* Simple test to check if implementedEvents returns an empty array.
45-
*/
46-
public function testImplementedEvents()
47-
{
48-
$apiPaginationComponent = new ApiPaginationComponent($this->controller->components());
49-
$result = $apiPaginationComponent->implementedEvents();
50-
$expected = [];
51-
52-
$this->assertSame($expected, $result);
53-
}
54-
5543
/**
5644
* Test that a non API or paginated request returns null.
5745
*

0 commit comments

Comments
 (0)