src/Codeception/Module/WPDb.php
public function dontHaveOptionInDatabase($key, $value = null)
    {
        $tableName = $this->grabPrefixedTableNameFor('options');
        $criteria['option_name'] = $key;
        if (!empty($value)) {
            $criteria['option_value'] = $this->maybeUnserialize($value);
        }

        $this->dontHaveInDatabase($tableName, $criteria);
    }
public function dontHaveOptionInDatabase($key, $value = null)
    {
        $tableName = $this->grabPrefixedTableNameFor('options');
        $criteria['option_name'] = $key;
        if (!empty($value)) {
            $criteria['option_value'] = $this->maybeUnserialize($value);
        }

        $this->dontHaveInDatabase($tableName, $criteria);
    }
public function dontHaveOptionInDatabase ( $ key , $ value = null ) { $ tableName = $ this -> grabPrefixedTableNameFor ( 'options' ) ; $ criteria [ 'option_name' ] = $ key ; if ( ! empty ( $ value ) ) { $ criteria [ 'option_value' ] = $ this -> maybeUnserialize ( $ value ) ; } $ this -> dontHaveInDatabase ( $ tableName , $ criteria ) ; }
Removes an entry from the options table.

@example
```php
// Remove the `foo` option.
$I->dontHaveOptionInDatabase('foo');
// Remove the 'bar' option only if it has the `baz` value.
$I->dontHaveOptionInDatabase('bar', 'baz');
```

@param string     $key   The option name.
@param null|mixed $value If set the option will only be removed if its value matches the passed one.
Removes an entry from the options table .