Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReportsTest.php
Go to the documentation of this file.
1 <?php
7 
12 {
22  public function testFetchAction()
23  {
24  $this->dispatch('backend/paypal/paypal_reports/fetch');
25  $this->assertSessionMessages(
26  $this->equalTo(['We can&#039;t fetch reports from &quot;[email protected].&quot;']),
27  \Magento\Framework\Message\MessageInterface::TYPE_ERROR
28  );
29  }
30 }
assertSessionMessages(\PHPUnit\Framework\Constraint\Constraint $constraint, $messageType=null, $messageManagerClass=\Magento\Framework\Message\Manager::class)