ContactTest.php

Same filename in other branches
  1. 11.x core/modules/contact/tests/src/Unit/ContactTest.php

Namespace

Drupal\Tests\contact\Unit

File

core/modules/contact/tests/src/Unit/ContactTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\contact\Unit;

use Drupal\Tests\UnitTestCase;

/**
 * @group contact
 */
class ContactTest extends UnitTestCase {
    
    /**
     * Test contact_menu_local_tasks_alter doesn't throw warnings.
     */
    public function testLocalTasksAlter() : void {
        require_once $this->root . '/core/modules/contact/contact.module';
        $data = [];
        \contact_menu_local_tasks_alter($data, 'entity.user.canonical');
        $this->assertTrue(TRUE, 'No warning thrown');
    }

}

Classes

Title Deprecated Summary
ContactTest @group contact

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.