NodeTest::testGetPresenceWithEnabledISAndGroupingDisabled PHP Method

testGetPresenceWithEnabledISAndGroupingDisabled() public method

Tests the getPresence method when DisableIS is false and navigation tree grouping disabled.
    public function testGetPresenceWithEnabledISAndGroupingDisabled()
    {
        $GLOBALS['cfg']['Server']['DisableIS'] = false;
        $GLOBALS['cfg']['NavigationTreeEnableGrouping'] = false;
        $query = "SELECT COUNT(*) ";
        $query .= "FROM INFORMATION_SCHEMA.SCHEMATA ";
        $query .= "WHERE TRUE ";
        $node = NodeFactory::getInstance();
        $dbi = $this->getMockBuilder('PMA\\libraries\\DatabaseInterface')->disableOriginalConstructor()->getMock();
        $dbi->expects($this->once())->method('fetchValue')->with($query);
        $GLOBALS['dbi'] = $dbi;
        $node->getPresence();
    }