Skip to content

Commit 61eb2fd

Browse files
committed
Add missing unit tests
1 parent 48f20d9 commit 61eb2fd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/Unit/DripperTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@
77

88
class DripperTest extends TestCase
99
{
10+
public function testAgeCheckIntervalAttributeValue()
11+
{
12+
$expectedResult = 2000;
13+
14+
$actualResult = (new Dripper)->ageCheckInterval;
15+
16+
$this->assertEquals($expectedResult, $actualResult);
17+
}
18+
19+
public function testAgeThresholdAttributeValue()
20+
{
21+
$expectedResult = 7080000;
22+
23+
$actualResult = (new Dripper)->ageThreshold;
24+
25+
$this->assertEquals($expectedResult, $actualResult);
26+
}
27+
1028
public function testUrlAttributeValue()
1129
{
1230
$expectedResult = "/genealabs/laravel-caffeine/drip";

0 commit comments

Comments
 (0)