You are here

public function SecureSiteFunctionFakeRealmUnitTest::testSecureSiteFunctionFakeRealmOpera in Secure Site 7.2

Same name and namespace in other branches
  1. 6.2 securesite.test \SecureSiteFunctionFakeRealmUnitTest::testSecureSiteFunctionFakeRealmOpera()

Check realm with Opera.

File

./securesite.test, line 740
Tests for Secure Site module.

Class

SecureSiteFunctionFakeRealmUnitTest
Unit tests for _securesite_fake_realm().

Code

public function testSecureSiteFunctionFakeRealmOpera() {
  $_SERVER['HTTP_USER_AGENT'] = 'opera';
  $this
    ->assertTrue($this->fake_realm != _securesite_fake_realm(), t('Checking realm with Opera.'));
}