Skip to content

Commit

Permalink
test: refactor instanciation of tested item
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 23, 2023
1 parent 0676153 commit 761a36c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/3-unit/PluginFormcreatorTargetTicket.php
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ public function providerSetTargetLocation_NotSet() {

$form1 = $this->getForm();

$instance1 = new PluginFormcreatorTargetTicket();
$instance1 = $this->newTestedInstance();
$instance1->add([
'name' => 'foo',
'target_name' => '',
Expand Down Expand Up @@ -1436,7 +1436,7 @@ public function providerSetTargetLocation_LastItem() {
'fieldtype' => 'dropdown',
'itemtype' => $validItemtype
]);
$instance1 = new PluginFormcreatorTargetTicket();
$instance1 = $this->newTestedInstance();
$instance1->add([
'name' => 'foo',
'target_name' => '',
Expand Down

0 comments on commit 761a36c

Please sign in to comment.