Skip to content

Commit

Permalink
Remove the make static method of the Step class
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Oct 14, 2019
1 parent 545f484 commit d0962cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions src/Step.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ public function __construct(Wizard $wizard, int $index)
$this->index = $index;
}

/**
* Make a new static step.
*
* @param \Ycs77\LaravelWizard\Wizard $wizard
* @param int $index
* @return self
*/
public static function make(Wizard $wizard, int $index)
{
return new static(...func_get_args());
}

/**
* Get the step index.
*
Expand Down
5 changes: 0 additions & 5 deletions tests/Unit/StepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public function testGetStepProperties()
$this->assertEquals('steps.user', $this->step->view());
}

public function testMakeFromStatic()
{
$this->assertNotNull(UserStepStub::make($this->wizard, 0));
}

public function testGetData()
{
// arrange
Expand Down

0 comments on commit d0962cd

Please sign in to comment.