/** * Press the SAVE AND UNPUBLISH button. */ protected function pressSaveAndUnpublish() { $this->helperContext->getSession()->getPage()->pressButton($this->page->getButton(self::BUTTON_SAVE_AND_UNPUBLISH)); }
/** * Verify the links displayed on the screen. * @param $links */ protected function verifyLinks($links) { foreach ($links as $link) { Assertions::assertTrue($this->helper_context->getSession()->getPage()->hasLink($link), $link . ' link not found'); } }