'cid' => 13,
'comment' => '',
'category' => null,
+ 'rules' => '',
'forward' => false,
'created' => null
],
self::assertEquals($assertion->cid, $report->cid);
self::assertEquals($assertion->comment, $report->comment);
self::assertEquals($assertion->category, $report->category);
+ self::assertEquals($assertion->rules, $report->rules);
self::assertEquals($assertion->forward, $report->forward);
// No way to test "now" at the moment
//self::assertEquals($assertion->created, $report->created);
'cid' => 13,
'comment' => 'Report',
'category' => 'violation',
+ 'rules' => 'Rules',
'forward' => true,
'postUriIds' => [89, 90],
'uid' => 12,
/**
* @dataProvider dataCreateFromReportsRequest
*/
- public function testCreateFromReportsRequest(int $reporter, int $cid, string $comment, string $category = null, string $rules = null, bool $forward, array $postUriIds, int $uid, Entity\Report $assertion)
+ public function testCreateFromReportsRequest(int $reporter, int $cid, string $comment, string $category = null, string $rules = '', bool $forward, array $postUriIds, int $uid, Entity\Report $assertion)
{
$factory = new Factory\Report(new NullLogger());