src/Codeception/Module/WPDb.php
public function haveTermMetaInDatabase($term_id, $meta_key, $meta_value)
    {
        if (!is_int($term_id)) {
            throw new \BadMethodCallException('Term id must be an int');
        }
        if (!is_string($meta_key)) {
            throw new \BadMethodCallException('Meta key must be an string');
        }
        $tableName = $this->grabTermMetaTableName();

        return $this->haveInDatabase($tableName, [
            'term_id' => $term_id,
            'meta_key' => $meta_key,
            'meta_value' => $this->maybeSerialize($meta_value),
        ]);
    }
public function haveTermMetaInDatabase($term_id, $meta_key, $meta_value)
    {
        if (!is_int($term_id)) {
            throw new \BadMethodCallException('Term id must be an int');
        }
        if (!is_string($meta_key)) {
            throw new \BadMethodCallException('Meta key must be an string');
        }
        $tableName = $this->grabTermMetaTableName();

        return $this->haveInDatabase($tableName, [
            'term_id' => $term_id,
            'meta_key' => $meta_key,
            'meta_value' => $this->maybeSerialize($meta_value),
        ]);
    }
public function haveTermMetaInDatabase ( $ term_id , $ meta_key , $ meta_value ) { if ( ! is_int ( $ term_id ) ) { throw new \ BadMethodCallException ( 'Term id must be an int' ) ; } if ( ! is_string ( $ meta_key ) ) { throw new \ BadMethodCallException ( 'Meta key must be an string' ) ; } $ tableName = $ this -> grabTermMetaTableName ( ) ; return $ this -> haveInDatabase ( $ tableName , [ 'term_id' => $ term_id , 'meta_key' => $ meta_key , 'meta_value' => $ this -> maybeSerialize ( $ meta_value ) , ] ) ; }
Inserts a term meta row in the database.
Objects and array meta values will be serialized.

@example
```php
$I->haveTermMetaInDatabase($fictionId, 'readers_count', 23);
// Insert some meta that will be serialized.
$I->haveTermMetaInDatabase($fictionId, 'flags', [3, 4, 89]);
// Use a loop to insert one meta per row.
foreach([3, 4, 89] as $value) {
$I->haveTermMetaInDatabase($fictionId, 'flag', $value);
}
```

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

@return int The inserted term meta `meta_id`.
Inserts a term meta row in the database . Objects and array meta values will be serialized .