public function testMessageToJson() { $message = new \Krucas\Notification\Message('error', 'test message', false, ':type: :message'); $this->assertEquals('{"message":"test message","format":":type: :message","type":"error","flashable":false,"alias":null,"position":null}', $message->toJson()); }