Skip to content

Commit e836584

Browse files
committed
add test for NullSpamCheckerService
1 parent 82f1924 commit e836584

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace JoindinTest\Services;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
class NullSpamCheckServiceTest extends TestCase
8+
{
9+
/**
10+
* @test
11+
*/
12+
public function spamCheckShouldReturnTrue()
13+
{
14+
$service = new \NullSpamCheckService();
15+
$this->assertTrue($service->isCommentAcceptable([], '0.0.0.0', 'userAgent'));
16+
}
17+
}

0 commit comments

Comments
 (0)