protected function checkService() { $passed = true; if (DatabaseCompatibilityUtil::isDatabaseStrictMode('mysql', $this->form->databaseHostname, $this->form->databaseUsername, $this->form->databasePassword, $this->form->databasePort)) { $this->message = Zurmo::t('InstallModule', 'Database is in strict mode.'); $passed = false; } else { $this->message = Zurmo::t('InstallModule', 'Database is not in strict mode.'); } return $passed; }
public function testIsDatabaseStrictMode() { $isDatabaseStrictMode = DatabaseCompatibilityUtil::isDatabaseStrictMode('mysql', $this->hostname, $this->rootUsername, $this->rootPassword, $this->databasePort); $this->assertTrue(is_bool($isDatabaseStrictMode)); }
/** * Simple test to confirm the check doesnt break. */ public function testIsDatabaseStrictMode() { $this->assertNotNull(DatabaseCompatibilityUtil::isDatabaseStrictMode('mysql', $this->temporaryDatabaseHostname, $this->temporaryDatabaseUsername, $this->temporaryDatabasePassword, $this->temporaryDatabasePort)); }