/** * Assert that success message is displayed after widget saved. * * @param WidgetInstanceIndex $widgetInstanceIndex * @return void */ public function processAssert(WidgetInstanceIndex $widgetInstanceIndex) { \PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_MESSAGE, $widgetInstanceIndex->getMessagesBlock()->getSuccessMessages()); }