Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CriticalTest.php
Go to the documentation of this file.
1 <?php
7 
8 class CriticalTest extends \PHPUnit\Framework\TestCase
9 {
13  protected $_model;
14 
15  protected function setUp()
16  {
18  \Magento\AdminNotification\Model\ResourceModel\Inbox\Collection\Critical::class
19  );
20  }
21 
26  {
27  $items = array_values($this->_model->getItems());
28  $this->assertEquals('Unread Critical 3', $items[0]->getTitle());
29  }
30 }
$items