-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
CreateTest.php
24 lines (18 loc) · 810 Bytes
/
CreateTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace EthanYehuda\CronjobManager\Test\Integration\Controller\Adminhtml\Manage;
use Magento\TestFramework\TestCase\AbstractBackendController;
class CreateTest extends AbstractBackendController
{
protected $uri = 'backend/cronjobmanager/manage/create';
protected $resource = 'EthanYehuda_CronjobManager::cronjobmanager';
public function testEditAction()
{
$this->dispatch($this->uri);
$result = $this->getResponse()->getBody();
if (\method_exists($this, 'assertStringContainsString')) {
$this->assertStringContainsString('<title>Create Cron Job / Tools / System / Magento Admin</title>', $result);
} else {
$this->assertContains('<title>Create Cron Job / Tools / System / Magento Admin</title>', $result);
}
}
}