Codeception\Module\WPDb::haveCommentMetaInDatabase PHP Method

haveCommentMetaInDatabase() public method

Array and object meta values will be serialized.
public haveCommentMetaInDatabase ( integer $comment_id, string $meta_key, mixed $meta_value ) : integer
$comment_id integer
$meta_key string
$meta_value mixed
return integer The inserted comment meta ID
    public function haveCommentMetaInDatabase($comment_id, $meta_key, $meta_value)
    {
        if (!is_int($comment_id)) {
            throw new \BadMethodCallException('Comment id must be an int');
        }
        if (!is_string($meta_key)) {
            throw new \BadMethodCallException('Meta key must be an string');
        }
        return $this->haveInDatabase($this->grabCommentmetaTableName(), ['comment_id' => $comment_id, 'meta_key' => $meta_key, 'meta_value' => $this->maybeSerialize($meta_value)]);
    }
WPDb