From 6b375c7f6c54fa6919f28c683905d83b2fc5e8e0 Mon Sep 17 00:00:00 2001 From: sarvesh21 <sarvesh211999@gmail.com> Date: Fri, 21 Jun 2019 17:48:34 +0000 Subject: [PATCH] removing files --- .../CRM/Myextension/2MyHeadlessTest.php | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 tests/phpunit/CRM/Myextension/2MyHeadlessTest.php diff --git a/tests/phpunit/CRM/Myextension/2MyHeadlessTest.php b/tests/phpunit/CRM/Myextension/2MyHeadlessTest.php deleted file mode 100644 index d4c71f7e..00000000 --- a/tests/phpunit/CRM/Myextension/2MyHeadlessTest.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php - -use CRM_Dataprocessor_ExtensionUtil as E; -use Civi\Test\HeadlessInterface; -use Civi\Test\HookInterface; -use Civi\Test\TransactionalInterface; - -/** - * FIXME - Add test description. - * - * Tips: - * - With HookInterface, you may implement CiviCRM hooks directly in the test class. - * Simply create corresponding functions (e.g. "hook_civicrm_post(...)" or similar). - * - With TransactionalInterface, any data changes made by setUp() or test****() functions will - * rollback automatically -- as long as you don't manipulate schema or truncate tables. - * If this test needs to manipulate schema or truncate tables, then either: - * a. Do all that using setupHeadless() and Civi\Test. - * b. Disable TransactionalInterface, and handle all setup/teardown yourself. - * - * @group headless - */ -class CRM_Myextension_2MyHeadlessTest extends \PHPUnit_Framework_TestCase implements HeadlessInterface, HookInterface, TransactionalInterface { - - public function setUpHeadless() { - // Civi\Test has many helpers, like install(), uninstall(), sql(), and sqlFile(). - // See: https://docs.civicrm.org/dev/en/latest/testing/phpunit/#civitest - return \Civi\Test::headless() - ->installMe(__DIR__) - ->apply(); - } - - public function setUp() { - parent::setUp(); - } - - public function tearDown() { - parent::tearDown(); - } - - /** - * Example: Test that a version is returned. - */ - public function testWellFormedVersion() { - $this->assertRegExp('/^([0-9\.]|alpha|beta)*$/', \CRM_Utils_System::version()); - } - - /** - * Example: Test that we're using a fake CMS. - */ - public function testWellFormedUF() { - $this->assertEquals('UnitTests', CIVICRM_UF); - } - -} -- GitLab