Codeception\Module\WPDb::dontHaveOptionInDatabase PHP Method

dontHaveOptionInDatabase() public method

Removes an entry from the options table.
public dontHaveOptionInDatabase ( $key, null $value = null ) : integer
$key
$value null
return integer The removed option `option_id`.
    public function dontHaveOptionInDatabase($key, $value = null)
    {
        $tableName = $this->grabPrefixedTableNameFor('options');
        $criteria['option_name'] = $key;
        if (!empty($value)) {
            $criteria['option_value'] = $value;
        }
        $this->dontHaveInDatabase($tableName, $criteria);
    }
WPDb