init
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/***
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\AdminNotification\Controller\Adminhtml\Notification;
|
||||
|
||||
/**
|
||||
* Testing markAsRead controller.
|
||||
*
|
||||
* @magentoAppArea adminhtml
|
||||
*/
|
||||
class MarkAsReadTest extends \Magento\TestFramework\TestCase\AbstractBackendController
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->resource = 'Magento_AdminNotification::mark_as_read';
|
||||
$this->uri = 'backend/admin/notification/markasread';
|
||||
parent::setUp();
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/***
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\AdminNotification\Controller\Adminhtml\Notification;
|
||||
|
||||
use Magento\Framework\App\Request\Http as HttpRequest;
|
||||
|
||||
class MassMarkAsReadTest extends \Magento\TestFramework\TestCase\AbstractBackendController
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->resource = 'Magento_AdminNotification::mark_as_read';
|
||||
$this->uri = 'backend/admin/notification/massmarkasread';
|
||||
$this->httpMethod = HttpRequest::METHOD_POST;
|
||||
parent::setUp();
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/***
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\AdminNotification\Controller\Adminhtml\Notification;
|
||||
|
||||
use Magento\Framework\App\Request\Http as HttpRequest;
|
||||
|
||||
class MassRemoveTest extends \Magento\TestFramework\TestCase\AbstractBackendController
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->resource = 'Magento_AdminNotification::adminnotification_remove';
|
||||
$this->uri = 'backend/admin/notification/massremove';
|
||||
$this->httpMethod = HttpRequest::METHOD_POST;
|
||||
parent::setUp();
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/***
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\AdminNotification\Controller\Adminhtml\Notification;
|
||||
|
||||
class RemoveTest extends \Magento\TestFramework\TestCase\AbstractBackendController
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->resource = 'Magento_AdminNotification::adminnotification_remove';
|
||||
$this->uri = 'backend/admin/notification/remove';
|
||||
parent::setUp();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user