Skip to content

Commit ac5f13c

Browse files
committed
Flesh out Config/Services testing
1 parent 77c53ba commit ac5f13c

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

tests/system/Config/ServicesTest.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,64 @@ public function testReset()
277277
$this->assertTrue($response !== $response2);
278278
}
279279

280+
public function testFilters()
281+
{
282+
$result = Services::filters();
283+
$this->assertInstanceOf(\CodeIgniter\Filters\Filters::class, $result);
284+
}
285+
286+
public function testHoneypot()
287+
{
288+
$result = Services::honeypot();
289+
$this->assertInstanceOf(\CodeIgniter\Honeypot\Honeypot::class, $result);
290+
}
291+
292+
public function testMigrations()
293+
{
294+
$result = Services::migrations();
295+
$this->assertInstanceOf(\CodeIgniter\Database\MigrationRunner::class, $result);
296+
}
297+
298+
public function testParser()
299+
{
300+
$result = Services::parser();
301+
$this->assertInstanceOf(\CodeIgniter\View\Parser::class, $result);
302+
}
303+
304+
public function testRedirectResponse()
305+
{
306+
$result = Services::redirectResponse();
307+
$this->assertInstanceOf(\CodeIgniter\HTTP\RedirectResponse::class, $result);
308+
}
309+
310+
public function testRoutes()
311+
{
312+
$result = Services::routes();
313+
$this->assertInstanceOf(\CodeIgniter\Router\RouteCollection::class, $result);
314+
}
315+
316+
public function testRouter()
317+
{
318+
$result = Services::router();
319+
$this->assertInstanceOf(\CodeIgniter\Router\Router::class, $result);
320+
}
321+
322+
public function testSecurity()
323+
{
324+
$result = Services::security();
325+
$this->assertInstanceOf(\CodeIgniter\Security\Security::class, $result);
326+
}
327+
328+
public function testTimer()
329+
{
330+
$result = Services::timer();
331+
$this->assertInstanceOf(\CodeIgniter\Debug\Timer::class, $result);
332+
}
333+
334+
public function testTypography()
335+
{
336+
$result = Services::typography();
337+
$this->assertInstanceOf(\CodeIgniter\Typography\Typography::class, $result);
338+
}
339+
280340
}

0 commit comments

Comments
 (0)