Codeception\Module\WPDb::haveSiteOptionInDatabase PHP Method

haveSiteOptionInDatabase() public method

If the value is an array or an object then the value will be serialized.
public haveSiteOptionInDatabase ( string $key, mixed $value ) : integer
$key string
$value mixed
return integer The inserted option `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;
    }
WPDb