Codeception\Module\WPDb::haveTermMetaInDatabase PHP Method

haveTermMetaInDatabase() public method

Objects and array meta values will be serialized.
public haveTermMetaInDatabase ( integer $term_id, string $meta_key, mixed $meta_value ) : integer
$term_id integer
$meta_key string
$meta_value mixed
return integer The inserted term meta `meta_id`
    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, array('term_id' => $term_id, 'meta_key' => $meta_key, 'meta_value' => $this->maybeSerialize($meta_value)));
    }
WPDb