$this->app1OrderDetailButtonId = Uuid::
randomHex();
$this->app1ProductDetailButtonId = Uuid::
randomHex();
$this->app1OrderListButtonId = Uuid::
randomHex();
$this->app2OrderDetailButtonId = Uuid::
randomHex();
$this->app3OrderDetailButtonId = Uuid::
randomHex();
} public function testLoadActionButtonsForView(): void
{ $this->
registerActionButtons();
$loadedActionButtons =
$this->actionButtonLoader->
loadActionButtonsForView('order', 'detail',
$this->context
);
usort($loadedActionButtons,
fn (array
$a, array
$b): int =>
$a['app'
] <=>
$b['app'
]);
static::
assertEquals([ [ 'app' => 'App1',
'id' =>
$this->app1OrderDetailButtonId,
'label' =>
[ 'en-GB' => 'Order Detail App1',
],
'action' => 'orderDetailApp1',