- Issue created by @murz
- @murz opened merge request.
- Status changed to Fixed
almost 2 years ago 9:26am 26 January 2023 - Status changed to Fixed
almost 2 years ago 9:26am 26 January 2023
Very often we need to create an entity stub and save it immediately, with returning the object.
Now we have to use the long construction like this:
($node1 = UnitTestHelpers::createEntityStub(Node::class, ['title' => 'Article 1']))->save();
So will be good to simplify it to this:
$node1 = UnitTestHelpers::saveEntityStub(Node::class, ['title' => 'Article 1']));
Fixed
1.0
Code