How to add menu links to a node created within a test? I want to create a test where a few nodes are created, and on those nodes are menu links.

The most I have found so far is:

    $options = array(
      'menu_name' =&gt; 'menu_test',
      'bundle' =&gt; 'menu_link_content',
      'link' =&gt; [['uri' =&gt; 'internal:/']],
    );
    $link = MenuLinkContent::create($options);
    $link-&gt;save();


How do I tie it and the node together? Just provide the node uri in the 'link' property? Would that just be internal:node/(nid)?
Yes, you have just to provide an uri that identifies the node, for example entity:node/1

Use

'link' =&gt; ['uri' =&gt; 'entity:node/' . $nid],