src/Codeception/Module/WPDb.php
public function useBlog($blogId = 0)
    {
        if (!(is_numeric($blogId) && intval($blogId) === $blogId && intval($blogId) >= 0)) {
            throw new \InvalidArgumentException('Id must be an integer greater than or equal to 0');
        }
        $this->blogId = intval($blogId);
    }
public function useBlog($blogId = 0)
    {
        if (!(is_numeric($blogId) && intval($blogId) === $blogId && intval($blogId) >= 0)) {
            throw new \InvalidArgumentException('Id must be an integer greater than or equal to 0');
        }
        $this->blogId = intval($blogId);
    }
public function useBlog ( $ blogId = 0 ) { if ( ! ( is_numeric ( $ blogId ) && intval ( $ blogId ) === $ blogId && intval ( $ blogId ) >= 0 ) ) { throw new \ InvalidArgumentException ( 'Id must be an integer greater than or equal to 0' ) ; } $ this -> blogId = intval ( $ blogId ) ; }
Sets the blog to be used.

This has nothing to do with WordPress `switch_to_blog` function, this code will affect the table prefixes used.

@example
```php
// Switch to the blog with ID 23.
$I->useBlog(23);
// Switch back to the main blog.
$I->useMainBlog();
```

@param int $blogId The ID of the blog to use.
Sets the blog to be used .