Codeception\Module\WPDb::haveTermRelationshipInDatabase PHP Method

haveTermRelationshipInDatabase() public method

Please mind that no check about the consistency of the insertion is made. E.g. a post could be assigned a term from a taxonomy that's not registered for that post type.
public haveTermRelationshipInDatabase ( integer $object_id, integer $term_taxonomy_id, integer $term_order )
$object_id integer A post ID, a user ID or anything that can be assigned a taxonomy term.
$term_taxonomy_id integer
$term_order integer Defaults to `0`.
    public function haveTermRelationshipInDatabase($object_id, $term_taxonomy_id, $term_order = 0)
    {
        $this->haveInDatabase($this->grabTermRelationshipsTableName(), ['object_id' => $object_id, 'term_taxonomy_id' => $term_taxonomy_id, 'term_order' => $term_order]);
    }
WPDb