public function FieldRedirectionResultUnitTest::testDeny in Field Redirection 8.2
@covers ::deny
File
- tests/
src/ Unit/ FieldRedirectionResultUnitTest.php, line 40
Class
- FieldRedirectionResultUnitTest
- Defines a class for testing FieldRedirectionResult.
Namespace
Drupal\Tests\field_redirection\UnitCode
public function testDeny() {
$redirect = FieldRedirectionResult::deny();
$this
->assertFalse($redirect
->shouldRedirect());
$this
->expectException(\LogicException::class);
$redirect
->asRedirectResponse();
}