src/Codeception/Module/WPDb.php
public function haveSiteOptionInDatabase($key, $value)
    {
        $currentBlogId = $this->blogId;
        $this->useMainBlog();
        $option_id = $this->haveOptionInDatabase('_site_option_' . $key, $value);
        $this->useBlog($currentBlogId);

        return $option_id;
    }
public function haveSiteOptionInDatabase($key, $value)
    {
        $currentBlogId = $this->blogId;
        $this->useMainBlog();
        $option_id = $this->haveOptionInDatabase('_site_option_' . $key, $value);
        $this->useBlog($currentBlogId);

        return $option_id;
    }
public function haveSiteOptionInDatabase ( $ key , $ value ) { $ currentBlogId = $ this -> blogId ; $ this -> useMainBlog ( ) ; $ option_id = $ this -> haveOptionInDatabase ( '_site_option_' . $ key , $ value ) ; $ this -> useBlog ( $ currentBlogId ) ; return $ option_id ; }
Inserts a site option in the database.

If the value is an array or an object then the value will be serialized.

@example
```php
$fooCountOptionId = $I->haveSiteOptionInDatabase('foo_count','23');
```

@param string $key The name of the option to insert.
@param mixed  $value The value ot insert for the option.

@return int The inserted option `option_id`.
Inserts a site option in the database .