. **/ require_once __DIR__.'/../common/testItemTest.php'; /** * "Test item" function tests. * * @dataSource Proxies, GlobalMacros * * @backup items */ class testFormTestLowLevelDiscovery extends testItemTest { /** * Check Test LLD Button enabled/disabled state depending on item type for Host. * * @backupOnce items */ public function testFormTestLowLevelDiscovery_CheckButtonStateHost() { $this->checkTestButtonState($this->getCommonTestButtonStateData(), 'LLD for Test Button check', 'Discovery rule', ' created', true, true, self::HOST_ID, 'host_discovery'); } /** * Check Test LLD Button enabled/disabled state depending on item type for Template. */ public function testFormTestLowLevelDiscovery_CheckButtonStateTemplate() { $this->checkTestButtonState($this->getCommonTestButtonStateData(), 'LLD for Test Button check', 'Discovery rule', ' created', false, false, self::TEMPLATE_ID, 'host_discovery'); } /** * Check Test LLD form for Host. * * @dataProvider getCommonTestItemData * * @depends testFormTestLowLevelDiscovery_CheckButtonStateHost * * TODO: remove ignoreBrowserErrors after DEV-4233 * @ignoreBrowserErrors */ public function testFormTestLowLevelDiscovery_TestLLDHost($data) { $this->checkTestItem($data, true, self::HOST_ID, 'host_discovery', true); } /** * Check Test LLD form for Template. * * @dataProvider getCommonTestItemData * * @depends testFormTestLowLevelDiscovery_CheckButtonStateTemplate * * TODO: remove ignoreBrowserErrors after DEV-4233 * @ignoreBrowserErrors */ public function testFormTestLowLevelDiscovery_TestLLDTemplate($data) { $this->checkTestItem($data, false, self::TEMPLATE_ID, 'host_discovery', true); } }