47 $this->contextMock = $this->getMockBuilder(\
Magento\Backend\
App\Action\Context::class)
48 ->disableOriginalConstructor()
50 $this->viewMock = $this->createMock(\
Magento\Framework\
App\ViewInterface::class);
51 $this->contextMock->expects($this->any())
53 ->will($this->returnValue($this->viewMock));
55 $this->controller = $this->objectManager->getObject(
56 \
Magento\Security\Controller\Adminhtml\Session\Activity::class,
58 'context' => $this->contextMock
68 $titleMock = $this->getMockBuilder(\
Magento\Framework\View\Page\Title::class)
69 ->disableOriginalConstructor()
72 ->expects($this->once())
74 ->with(
new Phrase(
'Account Activity'));
76 ->expects($this->any())
81 [
'title' => $titleMock]
85 $this->controller->execute();