public function testMessage() { $this->_ntf->message('Message test'); $this->_ntf->message('Message test', true); $data = $this->_ntf->data; $this->assertCount(2, $data); $this->assertInstanceOf(Notification::class, $data[0]); $this->assertEquals('Тест сообщения', $data[0]->message); $this->assertEquals(Notification::MESSAGE, $data[0]->type); $this->assertInstanceOf(Notification::class, $data[1]); $this->assertEquals('Message test', $data[1]->message); $this->assertEquals(Notification::MESSAGE, $data[1]->type); }