public function iShouldNotSeeTheMetabox(string $title)
    {
        try {
            $this->edit_post_page->getMetaBox($title);
        } catch (ExpectationException $e) {
            // Expectation fulfilled
            return;
        }

        throw new ExpectationException(
            sprintf(
                '[W809] Metabox "%s" was found on the page, but it should not be there.',
                $title
            ),
            $this->getSession()->getDriver()
        );
    }
public function iShouldNotSeeTheMetabox(string $title)
    {
        try {
            $this->edit_post_page->getMetaBox($title);
        } catch (ExpectationException $e) {
            // Expectation fulfilled
            return;
        }

        throw new ExpectationException(
            sprintf(
                '[W809] Metabox "%s" was found on the page, but it should not be there.',
                $title
            ),
            $this->getSession()->getDriver()
        );
    }
public function iShouldNotSeeTheMetabox ( string $ title ) { try { $ this -> edit_post_page -> getMetaBox ( $ title ) ; } catch ( ExpectationException $ e ) { // Expectation fulfilled return ; } throw new ExpectationException ( sprintf ( '[W809] Metabox "%s" was found on the page, but it should not be there.' , $ title ) , $ this -> getSession ( ) -> getDriver ( ) ) ; }
Assert that the referenced metabox is not visible.

The metabox may still be collapsed.

Example: Then I should not see the "Featured Image" metabox

@Then I should not see the :title metabox

@param string $title The title of the metabox being checked

@throws ExpectationException
Assert that the referenced metabox is not visible .