public function RabbitHoleBehaviorSettingsEntityMethodsTest::testSetAction in Rabbit Hole 8
Same name and namespace in other branches
- 2.x tests/src/Functional/RabbitHoleBehaviorSettingsEntityMethodsTest.php \Drupal\Tests\rabbit_hole\Functional\RabbitHoleBehaviorSettingsEntityMethodsTest::testSetAction()
Test that setAction() works as expected.
File
- tests/
src/ Functional/ RabbitHoleBehaviorSettingsEntityMethodsTest.php, line 79
Class
- RabbitHoleBehaviorSettingsEntityMethodsTest
- Test the functionality of the rabbit hole form additions to the node form.
Namespace
Drupal\Tests\rabbit_hole\FunctionalCode
public function testSetAction() {
$entity = $this
->createGenericTestEntity();
$action = 'page_not_found';
$entity
->setAction($action);
$this
->assertEquals($action, $entity
->getAction());
}