src/Codeception/Module/WPDb.php
public function seePostWithTermInDatabase($post_id, $term_id, $term_order = 0)
    {
        $tableName = $this->grabPrefixedTableNameFor('term_relationships');
        $this->dontSeeInDatabase($tableName, [
            'object_id' => $post_id,
            'term_id' => $term_id,
            'term_order' => $term_order,
        ]);
    }
public function seePostWithTermInDatabase($post_id, $term_id, $term_order = 0)
    {
        $tableName = $this->grabPrefixedTableNameFor('term_relationships');
        $this->dontSeeInDatabase($tableName, [
            'object_id' => $post_id,
            'term_id' => $term_id,
            'term_order' => $term_order,
        ]);
    }
public function seePostWithTermInDatabase ( $ post_id , $ term_id , $ term_order = 0 ) { $ tableName = $ this -> grabPrefixedTableNameFor ( 'term_relationships' ) ; $ this -> dontSeeInDatabase ( $ tableName , [ 'object_id' => $ post_id , 'term_id' => $ term_id , 'term_order' => $ term_order , ] ) ; }
Checks that a post to term relation exists in the database.

The method will check the "term_relationships" table.

@example
```php
list($fiction) = $I->haveTermInDatabase('fiction', 'genre');
$postId = $I->havePostInDatabase(['tax_input' => ['genre' => [$fiction]]]);
$I->seePostWithTermInDatabase($postId, $fiction);
```

@param  int     $post_id    The post ID.
@param  int     $term_id    The term ID.
@param  integer $term_order The order the term applies to the post, defaults to 0.
Checks that a post to term relation exists in the database .