src/Codeception/Module/WPDb.php
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),
        ]);
    }
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),
        ]);
    }
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 ) , ] ) ; }
Inserts a comment meta field in the database.
Array and object meta values will be serialized.

@example
```php
$I->haveCommentMetaInDatabase($commentId, 'api_ID', 23);
// The value will be serialized.
$apiData = ['ID' => 23, 'user' => 89, 'origin' => 'twitter'];
$I->haveCommentMetaInDatabase($commentId, 'api_data', $apiData);
```

@param int    $comment_id The ID of the comment to insert the meta for.
@param string $meta_key The key of the comment meta to insert.
@param mixed  $meta_value The value of the meta to insert, if serializable it will be serialized.

@return int The inserted comment meta ID.
Inserts a comment meta field in the database . Array and object meta values will be serialized .