src/Codeception/Module/WPBrowserMethods.php
public function amEditingPostWithId($id)
    {
        if (!is_numeric($id) && intval($id) == $id) {
            throw new \InvalidArgumentException('ID must be an int value');
        }

        $this->amOnAdminPage('/post.php?post=' . $id . '&action=edit');
    }
public function amEditingPostWithId($id)
    {
        if (!is_numeric($id) && intval($id) == $id) {
            throw new \InvalidArgumentException('ID must be an int value');
        }

        $this->amOnAdminPage('/post.php?post=' . $id . '&action=edit');
    }
public function amEditingPostWithId ( $ id ) { if ( ! is_numeric ( $ id ) && intval ( $ id ) == $ id ) { throw new \ InvalidArgumentException ( 'ID must be an int value' ) ; } $ this -> amOnAdminPage ( '/post.php?post=' . $ id . '&action=edit' ) ; }
Go to the admin page to edit the post with the specified ID.

The method will **not** handle authentication the admin area.

@example
```php
$I->loginAsAdmin();
$postId = $I->havePostInDatabase();
$I->amEditingPostWithId($postId);
$I->fillField('post_title', 'Post title');
```

@param int $id The post ID.
Go to the admin page to edit the post with the specified ID .