src/Codeception/Module/WPDb.php
public function seeOptionInDatabase(array $criteria)
    {
        $tableName = $this->grabPrefixedTableNameFor('options');
        if (!empty($criteria['option_value'])) {
            $criteria['option_value'] = $this->maybeSerialize($criteria['option_value']);
        }
        $this->seeInDatabase($tableName, $criteria);
    }
public function seeOptionInDatabase(array $criteria)
    {
        $tableName = $this->grabPrefixedTableNameFor('options');
        if (!empty($criteria['option_value'])) {
            $criteria['option_value'] = $this->maybeSerialize($criteria['option_value']);
        }
        $this->seeInDatabase($tableName, $criteria);
    }
public function seeOptionInDatabase ( array $ criteria ) { $ tableName = $ this -> grabPrefixedTableNameFor ( 'options' ) ; if ( ! empty ( $ criteria [ 'option_value' ] ) ) { $ criteria [ 'option_value' ] = $ this -> maybeSerialize ( $ criteria [ 'option_value' ] ) ; } $ this -> seeInDatabase ( $ tableName , $ criteria ) ; }
Checks if an option is in the database for the current blog.
If checking for an array or an object then the serialized version will be checked for.

@example
```php
// Checks an option is in the database.
$I->seeOptionInDatabase('tables_version');
// Checks an option is in the database and has a specific value.
$I->seeOptionInDatabase('tables_version', '1.0');
```

@param array $criteria An array of search criteria.
Checks if an option is in the database for the current blog . If checking for an array or an object then the serialized version will be checked for .