Codeception\Module\WPDb::maybeCheckTermExistsInDatabase PHP Method

maybeCheckTermExistsInDatabase() protected method

Will look up the "terms" table, will throw if not found.
protected maybeCheckTermExistsInDatabase ( integer $term_id ) : void
$term_id integer The term ID.
return void
    protected function maybeCheckTermExistsInDatabase($term_id)
    {
        if (!isset($this->config['checkExistence']) or false == $this->config['checkExistence']) {
            return;
        }
        $tableName = $this->grabPrefixedTableNameFor('terms');
        if (!$this->grabFromDatabase($tableName, 'term_id', array('term_id' => $term_id))) {
            throw new \RuntimeException("A term with an id of {$term_id} does not exist", 1);
        }
    }
WPDb