Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tests/selenium/services/testFormServicesServices.php')
-rw-r--r--ui/tests/selenium/services/testFormServicesServices.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/tests/selenium/services/testFormServicesServices.php b/ui/tests/selenium/services/testFormServicesServices.php
index b12ba73624c..6296c181ce1 100644
--- a/ui/tests/selenium/services/testFormServicesServices.php
+++ b/ui/tests/selenium/services/testFormServicesServices.php
@@ -24,10 +24,11 @@ require_once dirname(__FILE__).'/../behaviors/CMessageBehavior.php';
require_once dirname(__FILE__).'/../traits/TableTrait.php';
/**
- * @backup services
- *
+ * @dataSource EntitiesTags
* @dataSource Services
*
+ * @backup services
+ *
* @onBefore prepareServicesData
*/
class testFormServicesServices extends CWebTest {
@@ -330,8 +331,8 @@ class testFormServicesServices extends CWebTest {
$children_dialog->waitUntilReady();
// Check possible children count in table.
- $this->assertEquals(count(self::$serviceids), $children_dialog->query('class:list-table')->asTable()->one()
- ->getRows()->count()
+ $this->assertEquals(CDBHelper::getCount('SELECT null FROM services'), $children_dialog->query('class:list-table')
+ ->asTable()->one()->getRows()->count()
);
foreach (['Add', 'Cancel'] as $button) {