/**
* testWarning
*
* @since 3.0.0
*
* @param array $warning
* @param array $actionArray
* @param string $expect
*
* @dataProvider providerWarning
*/
public function testWarning($warning = null, $actionArray = [], $expect = null)
{
/* setup */
$messenger = new Messenger($this->_registry);
$messenger->setRoute($actionArray['text'], $actionArray['route']);
/* actual */
$actual = $messenger->warning($warning['message'], $warning['title']);
/* compare */
$this->assertEquals($expect, $actual);
}