src/Codeception/Module/WPDb.php
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,
        ]);
    }
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,
        ]);
    }
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 , ] ) ; }
Creates a term relationship in the database.

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.

@example
```php
// Assign the `fiction` term to a book.
$I->haveTermRelationshipInDatabase($bookId, $fictionId);
```

@param int $object_id  A post ID, a user ID or anything that can be assigned a taxonomy term.
@param int $term_taxonomy_id The `term_taxonomy_id` of the term and taxonomy to create a relation with.
@param int $term_order Defaults to `0`.
Creates a term relationship in the database .