You are here

public function OrganizationUiTest::assertOrganizationTypeLink in CRM Core 8

Same name and namespace in other branches
  1. 8.2 modules/crm_core_contact/src/Tests/OrganizationUiTest.php \Drupal\crm_core_contact\Tests\OrganizationUiTest::assertOrganizationTypeLink()

Asserts an organization type link.

The path 'admin/structure/crm-core/organization-types/' gets prepended to the path provided.

See also

WebTestBase::assertLinkByHref()

1 call to OrganizationUiTest::assertOrganizationTypeLink()
OrganizationUiTest::testOrganizationTypeOperations in modules/crm_core_contact/src/Tests/OrganizationUiTest.php
Tests the organization type operations.

File

modules/crm_core_contact/src/Tests/OrganizationUiTest.php, line 293

Class

OrganizationUiTest
Tests the UI for Organization CRUD operations.

Namespace

Drupal\crm_core_contact\Tests

Code

public function assertOrganizationTypeLink($href, $message = '') {
  $this
    ->assertLinkByHref('admin/structure/crm-core/organization-types/' . $href, 0, $message);
}