tests/phpunit/** - Remove unnecessary "require_once" statements
[civicrm-core.git] / tests / phpunit / CRM / Core / BAO / OpenIDTest.php
index 1e9305367e91b8bd4fd407c463e7019a9833c4a2..561e3eefab8c8ab7f9d3f44e2e4ef079a0aad597 100644 (file)
@@ -1,23 +1,12 @@
 <?php
-require_once 'CiviTest/CiviUnitTestCase.php';
+
 require_once 'CiviTest/Contact.php';
 
 /**
  * Class CRM_Core_BAO_OpenIDTest
  */
 class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
-  /**
-   * @return array
-   */
-  function get_info() {
-    return array(
-      'name' => 'OpenID BAOs',
-      'description' => 'Test all Core_BAO_OpenID methods.',
-      'group' => 'CiviCRM BAO Tests',
-    );
-  }
-
-  function tearDown() {
+  public function tearDown() {
     // If we truncate only contact, then stale domain and openid records will be left.
     // If we truncate none of these tables, then contactDelete() will incrementally
     // clean correctly.
@@ -25,14 +14,14 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
     //$this->quickCleanup($tablesToTruncate);
   }
 
-  function setUp() {
+  public function setUp() {
     parent::setUp();
   }
 
   /**
-   * add() method (create and update modes)
+   * Add() method (create and update modes)
    */
-  function testAdd() {
+  public function testAdd() {
     $contactId = Contact::createIndividual();
     $this->assertDBRowExist('CRM_Contact_DAO_Contact', $contactId);
 
@@ -74,9 +63,9 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
   }
 
   /**
-   * ifAllowedToLogin() method (set and reset allowed_to_login)
+   * IfAllowedToLogin() method (set and reset allowed_to_login)
    */
-  function testIfAllowedToLogin() {
+  public function testIfAllowedToLogin() {
     $contactId = Contact::createIndividual();
     $this->assertDBRowExist('CRM_Contact_DAO_Contact', $contactId);
     $openIdURL = "http://test-username.civicrm.org/";
@@ -119,9 +108,9 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
   }
 
   /**
-   * allOpenIDs() method - get all OpenIDs for the given contact
+   * AllOpenIDs() method - get all OpenIDs for the given contact
    */
-  function testAllOpenIDs() {
+  public function testAllOpenIDs() {
     $contactId = Contact::createIndividual();
     $this->assertDBRowExist('CRM_Contact_DAO_Contact', $contactId);
 
@@ -181,5 +170,5 @@ class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
     $this->contactDelete($contactId);
     $this->assertDBRowNotExist('CRM_Contact_DAO_Contact', $contactId);
   }
-}
 
+}