Skip to content

Commit 2e06621

Browse files
committed
Add basic test
1 parent 3193c1f commit 2e06621

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ easily changed.
3131
## Configuration (optional)
3232

3333
The library's default behavior can be changed using its config file. Copy
34-
bin/Alerts.php to app/Config/Alerts.php and follow the instructions in the
34+
**examples/Alerts.php** to **app/Config/Alerts.php** and follow the instructions in the
3535
comments. If no config file is found the library will use its defaults.
3636

3737
## Usage
File renamed without changes.

tests/unit/ServiceTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
use CodeIgniter\Test\CIUnitTestCase;
4+
use Tatter\Alerts\Alerts;
5+
6+
class ServiceTest extends CIUnitTestCase
7+
{
8+
public function testServiceReturnsLibrary()
9+
{
10+
$result = service('alerts');
11+
12+
$this->assertInstanceOf(Alerts::class, $result);
13+
}
14+
}

0 commit comments

Comments
 (0)