public function SaveActionTest::testGetDerivativeDefinitions in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Action/SaveActionTest.php \Drupal\KernelTests\Core\Action\SaveActionTest::testGetDerivativeDefinitions()
@covers \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver::getDerivativeDefinitions
File
- core/
tests/ Drupal/ KernelTests/ Core/ Action/ SaveActionTest.php, line 31
Class
- SaveActionTest
- @group Action
Namespace
Drupal\KernelTests\Core\ActionCode
public function testGetDerivativeDefinitions() {
$deriver = new EntityChangedActionDeriver(\Drupal::entityTypeManager(), \Drupal::translation());
$this
->assertArraySubset([
'entity_test_mul_changed' => [
'type' => 'entity_test_mul_changed',
'label' => 'Save test entity - data table',
'action_label' => 'Save',
],
], $deriver
->getDerivativeDefinitions([
'action_label' => 'Save',
]));
}