Skip to content

Commit 6d2178a

Browse files
committed
Cover implementedEvents in tests
1 parent ec3a0b2 commit 6d2178a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/TestCase/Controller/Component/ApiPaginationComponentTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ 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+
4355
/**
4456
* Test that a non API or paginated request returns null.
4557
*

0 commit comments

Comments
 (0)