You are here

public function UnpublishedNodesRedirectTest::testGetResponseCodeKey in Unpublished Nodes Redirect 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/UnpublishedNodesRedirectTest.php \Drupal\Tests\unpublished_nodes_redirect\Unit\UnpublishedNodesRedirectTest::testGetResponseCodeKey()

Tests getting response code keys.

File

tests/src/Unit/UnpublishedNodesRedirectTest.php, line 34

Class

UnpublishedNodesRedirectTest
Test for Unpublished nodes redirect module.

Namespace

Drupal\Tests\unpublished_nodes_redirect\Unit

Code

public function testGetResponseCodeKey() {
  $this
    ->assertEquals('content_type_name_unpublished_redirect_response_code', $this->utils
    ->getResponseCodeKey('content_type_name'));
}